<?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: Can I URL pass the Domain code instead of Description? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-url-pass-the-domain-code-instead-of/m-p/1025438#M32393</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;Thank you both for writing about this. I was having the same issue. I was publishing data through a portal. When using the custom URL on the IPAD tablet I would get the domain description, while in the webmap the domain code was being pushed though. This was causing issues with dependent questions as well as not creating consistent data. It looks like using the Data Functions&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#domaincode" target="_blank" rel="noopener"&gt;Data Functions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;"DomainCode" function to make it set the "domain code" or "DomainName" to force it to be the "domain description". It was a little confusing, but I was able to get to work by using the format:&amp;nbsp;&lt;SPAN class="hljs-built_in"&gt;DomainName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class="hljs-symbol"&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="hljs-string"&gt;'fieldName'&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp; and&amp;nbsp;&lt;SPAN class="hljs-built_in"&gt;DomainCode&lt;/SPAN&gt;(&lt;SPAN class="hljs-symbol"&gt;$feature&lt;/SPAN&gt;, &lt;SPAN class="hljs-string"&gt;'fieldName'&lt;/SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 17:30:07 GMT</pubDate>
    <dc:creator>JosephGrossman</dc:creator>
    <dc:date>2021-02-10T17:30:07Z</dc:date>
    <item>
      <title>Can I URL pass the Domain code instead of Description?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-url-pass-the-domain-code-instead-of/m-p/866469#M27078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am passing fields from Collector to Survey123 using the URL format&lt;/P&gt;&lt;P&gt;arcgis-survey123://?itemID={SoilStabilityForm}&amp;amp;field:Office={Office}&amp;amp;field:PlotID={PlotID}&amp;amp;field:PlotKey={PlotKey}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that it is passing the Domain Description instead of the Domain Code for Office&amp;nbsp;- which breaks all my constraints.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to pass the Domain Code instead of the Description?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 16:46:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-url-pass-the-domain-code-instead-of/m-p/866469#M27078</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2018-03-28T16:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can I URL pass the Domain code instead of Description?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-url-pass-the-domain-code-instead-of/m-p/866470#M27079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently this isn't possible in Collector. &amp;nbsp;It should&amp;nbsp;be possible in the new version of Collector under development (see &lt;A href="https://community.esri.com/community/gis/applications/collector-for-arcgis/blog/2017/09/06/the-aurora-project"&gt;https://community.esri.com/community/gis/applications/collector-for-arcgis/blog/2017/09/06/the-aurora-project&lt;/A&gt;), which will support Arcade expressions (see&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/function-reference/data_functions/#domaincode" title="https://developers.arcgis.com/arcade/function-reference/data_functions/#domaincode"&gt;Data Functions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 17:03:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-url-pass-the-domain-code-instead-of/m-p/866470#M27079</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-03-28T17:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I URL pass the Domain code instead of Description?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-url-pass-the-domain-code-instead-of/m-p/866471#M27080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was afraid of that.&amp;nbsp; Well my day just got longer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW the kinda fix was to have my Domain codes and description the same.&amp;nbsp; At least I did not have to start all over...so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 17:31:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-url-pass-the-domain-code-instead-of/m-p/866471#M27080</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2018-03-28T17:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I URL pass the Domain code instead of Description?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-url-pass-the-domain-code-instead-of/m-p/1025438#M32393</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;Thank you both for writing about this. I was having the same issue. I was publishing data through a portal. When using the custom URL on the IPAD tablet I would get the domain description, while in the webmap the domain code was being pushed though. This was causing issues with dependent questions as well as not creating consistent data. It looks like using the Data Functions&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#domaincode" target="_blank" rel="noopener"&gt;Data Functions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;"DomainCode" function to make it set the "domain code" or "DomainName" to force it to be the "domain description". It was a little confusing, but I was able to get to work by using the format:&amp;nbsp;&lt;SPAN class="hljs-built_in"&gt;DomainName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class="hljs-symbol"&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="hljs-string"&gt;'fieldName'&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp; and&amp;nbsp;&lt;SPAN class="hljs-built_in"&gt;DomainCode&lt;/SPAN&gt;(&lt;SPAN class="hljs-symbol"&gt;$feature&lt;/SPAN&gt;, &lt;SPAN class="hljs-string"&gt;'fieldName'&lt;/SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 17:30:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-url-pass-the-domain-code-instead-of/m-p/1025438#M32393</guid>
      <dc:creator>JosephGrossman</dc:creator>
      <dc:date>2021-02-10T17:30:07Z</dc:date>
    </item>
  </channel>
</rss>

