<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Passing feature attribute Code value instead of Label value in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/passing-feature-attribute-code-value-instead-of/m-p/1254377#M47240</link>
    <description>&lt;P&gt;Yes, you've about got it. You can do it a number of ways, but I like using template literals to build URLs, like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var field1 = $feature['some_field']
var field2 = $feature['another_field']

return `survey-url?itemid=someID&amp;amp;field:field1=${field1}&amp;amp;field:field2=${field2}`&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 16:27:53 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2023-02-02T16:27:53Z</dc:date>
    <item>
      <title>Passing feature attribute Code value instead of Label value</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/passing-feature-attribute-code-value-instead-of/m-p/1254142#M47227</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am using a custom URL scheme to prepopulate survey questions using the attributes from a selected feature in a web map. My question is, h&lt;/SPAN&gt;ow should the Survey123 custom URL scheme be written so that it passes the Code value of a feature layer's attribute and not the Label value?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 23:40:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/passing-feature-attribute-code-value-instead-of/m-p/1254142#M47227</guid>
      <dc:creator>mingster</dc:creator>
      <dc:date>2023-02-01T23:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Passing feature attribute Code value instead of Label value</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/passing-feature-attribute-code-value-instead-of/m-p/1254297#M47234</link>
      <description>&lt;P&gt;How are you generating the URL? If you use Arcade, you'll be able to pull in the actual value, but other popup elements are actually calling &lt;STRONG&gt;DomainName($feature, fieldname) &lt;/STRONG&gt;in the background. An expression lets you explicitly ask for &lt;STRONG&gt;$feature['fieldname']&lt;/STRONG&gt; instead.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 13:42:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/passing-feature-attribute-code-value-instead-of/m-p/1254297#M47234</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-02-02T13:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Passing feature attribute Code value instead of Label value</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/passing-feature-attribute-code-value-instead-of/m-p/1254356#M47239</link>
      <description>&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;I used a basic URL scheme:&amp;nbsp;arcgis-survey123://?itemID=227a34602bb44d309b24f5f06dfac989&amp;amp;field:location_type_ind_fs={sitetype}&amp;amp;field:wma_nm_ind={wma}. I need the Code values for sitetype and wma to prepopulate in Survey123.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not think about using Arcade! So I should create Arcade expressions to ask for&amp;nbsp;&lt;STRONG&gt;$feature['fieldname']&amp;nbsp;&lt;/STRONG&gt;for these fields and replace the values within the curly brackets with those expressions?&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 15:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/passing-feature-attribute-code-value-instead-of/m-p/1254356#M47239</guid>
      <dc:creator>mingster</dc:creator>
      <dc:date>2023-02-02T15:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Passing feature attribute Code value instead of Label value</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/passing-feature-attribute-code-value-instead-of/m-p/1254377#M47240</link>
      <description>&lt;P&gt;Yes, you've about got it. You can do it a number of ways, but I like using template literals to build URLs, like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var field1 = $feature['some_field']
var field2 = $feature['another_field']

return `survey-url?itemid=someID&amp;amp;field:field1=${field1}&amp;amp;field:field2=${field2}`&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 16:27:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/passing-feature-attribute-code-value-instead-of/m-p/1254377#M47240</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-02-02T16:27:53Z</dc:date>
    </item>
  </channel>
</rss>

