<?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: Survey123 calculation - use domain description in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1347293#M52732</link>
    <description>&lt;P&gt;I don't know, good database practices?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_halo:"&gt;😇&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 17:45:45 GMT</pubDate>
    <dc:creator>mikaël</dc:creator>
    <dc:date>2023-11-08T17:45:45Z</dc:date>
    <item>
      <title>Survey123 calculation - use domain description</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1273589#M48324</link>
      <description>&lt;P&gt;I'm using experience builder to allow a user to select a point in a map and complete a survey for that feature. In Survey123 web designer I have set up a a&amp;nbsp;&lt;EM&gt;type&lt;/EM&gt; question that uses a calculation to grab a value from the attribute table. This value uses coded domains. Is it possible to return the description in the survey rather than the code? i.e. when a red point is selected Type returns 1, not red.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 15:21:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1273589#M48324</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-03-30T15:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 calculation - use domain description</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1273603#M48325</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;This seems like a great case to use the jr:choice-name() function! Details are about 3/4 of the way down in this thread from Ismael:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-xlsform-functions/ba-p/893567" target="_self"&gt;Survey123 Tricks of the Trade: XLSForm functions for lists&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially that function allows you to return the label of the domain instead of the code.&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 15:36:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1273603#M48325</guid>
      <dc:creator>Vinzafy</dc:creator>
      <dc:date>2023-03-30T15:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 calculation - use domain description</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1273610#M48326</link>
      <description>&lt;P&gt;Looks promising! I should have specified that I am using Web Designer though - we don't use Survey123 Connect at my organization unless there's a good use case for it.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 15:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1273610#M48326</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-03-30T15:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 calculation - use domain description</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1273621#M48328</link>
      <description>&lt;P&gt;Can you just make the name and label the same?&amp;nbsp; I always do this now.&amp;nbsp; It is easier for everyone to understand and no need for lookup tables.&amp;nbsp; Works better on exports also.&amp;nbsp; No real need to use codes anymore.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 16:11:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1273621#M48328</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-03-30T16:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 calculation - use domain description</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1273650#M48332</link>
      <description>&lt;P&gt;The domains in the dataset seem to be set up that way but when I submit a survey response the type field is populated with a number&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 16:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1273650#M48332</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-03-30T16:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 calculation - use domain description</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1347283#M52730</link>
      <description>&lt;P&gt;More info on how to actually do this.&lt;/P&gt;&lt;P&gt;You domain values have to be in your "choices" tab:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;list_name&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;name&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;label&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;domainA&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;bla bla 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;domainA&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;bla bla 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;domainA&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;3&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;bla bla 3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in the "survey" tab:&lt;/P&gt;&lt;TABLE border="1" width="100.00000000000001%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;type&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;name&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;label&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;appearance&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;readonly&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;calculation&lt;/TD&gt;&lt;TD width="7.142857142857143%" height="25px"&gt;relevant&lt;/TD&gt;&lt;TD width="7.142857142857143%"&gt;bind::esri:fieldType&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;select_one domainA&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;field_name&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;field_name&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;hidden&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;yes&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="7.142857142857143%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="7.142857142857143%"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;text&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;whatever&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;description&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;yes&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&lt;P&gt;jr:choice-name(${field_name}, '${field_name}')&lt;/P&gt;&lt;/TD&gt;&lt;TD width="7.142857142857143%" height="25px"&gt;string-length(${field_name}) &amp;gt; 0&lt;/TD&gt;&lt;TD width="7.142857142857143%"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 17:33:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1347283#M52730</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2023-11-08T17:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 calculation - use domain description</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1347290#M52731</link>
      <description>&lt;P&gt;At that point why not just make the name and label the same?&amp;nbsp; I always do now, no real need for short codes these days.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 17:41:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1347290#M52731</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-11-08T17:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 calculation - use domain description</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1347293#M52732</link>
      <description>&lt;P&gt;I don't know, good database practices?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_halo:"&gt;😇&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 17:45:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1347293#M52732</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2023-11-08T17:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 calculation - use domain description</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1347309#M52734</link>
      <description>&lt;P&gt;I would argue that having codes and values that are different is bad practice actually. It will drive you nuts for years.&amp;nbsp; I have even seen companies lose what the code values mean. New user training on all these cryptic codes also.&amp;nbsp; Lookups tables and all that junk. Only real reason for codes in the past was quick typing but now with drop downs no real need.&amp;nbsp; In the example above you are just storing the label anyway so why go through all of that?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 18:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculation-use-domain-description/m-p/1347309#M52734</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-11-08T18:12:58Z</dc:date>
    </item>
  </channel>
</rss>

