<?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: Output field label AND name [using calculations on geopoints] in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/output-field-label-and-name-using-calculations-on/m-p/1042694#M33561</link>
    <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;Perfect, thank you so much!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick question, would the &lt;STRONG&gt;jr:choice-name()&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;function work within a if(selected()) formula? For example, if I had 2 separate fields Workarea1 and Workarea2 (only one of either are available in a survey depending on previous selections, both are set as bind::esri:fieldType null), and I wanted to pull only the labels into one single field?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;e.g.&amp;nbsp;if(selected(${previousfield}, 'choice1'),jr:choice-name(${Workarea1}, '${Workarea1}'),jr:choice-name(${Workarea2}, '${Workarea2}'))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 00:01:09 GMT</pubDate>
    <dc:creator>JulietK</dc:creator>
    <dc:date>2021-04-01T00:01:09Z</dc:date>
    <item>
      <title>Output field label AND name [using calculations on geopoints]</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/output-field-label-and-name-using-calculations-on/m-p/1042207#M33527</link>
      <description>&lt;P&gt;Hi, I am looking for a way to retain both the text name of a field select_one choice, as well as the geopoint information for the choice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the '&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/calculations-on-geopoints/ba-p/893788" target="_self"&gt;Calculations on Geopoints&lt;/A&gt;' method in my xlsform, which uses geopoints in the name column.&lt;/P&gt;&lt;P&gt;The fields in the xlsform look like the below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulietK_1-1617141455590.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9714i351D3C461B6CB3AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="JulietK_1-1617141455590.png" alt="JulietK_1-1617141455590.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My choices list for the fields look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulietK_0-1617141407667.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9713i68271DAC2D618E0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulietK_0-1617141407667.png" alt="JulietK_0-1617141407667.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am wanting to have my survey output datasheet include the label somehow, so that I can make charts on the Dashboard using the text label names (e.g. Site A, Building 1 etc). However obviously since the name column is what is shown in the output datasheet, all I see in the datasheet is the geopoint information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to set up a separate hidden field somehow to pull the labels rather than the name?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 22:04:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/output-field-label-and-name-using-calculations-on/m-p/1042207#M33527</guid>
      <dc:creator>JulietK</dc:creator>
      <dc:date>2021-03-30T22:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Output field label AND name [using calculations on geopoints]</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/output-field-label-and-name-using-calculations-on/m-p/1042260#M33535</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/96317"&gt;@JulietK&lt;/a&gt;&amp;nbsp;the label for a choice can be retrieved using the &lt;STRONG&gt;jr:choice-name()&lt;/STRONG&gt; function, as shown in the table of supported functions in the &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_276FB773E7E2442EB81831714B08660D" target="_self"&gt;Formulas&lt;/A&gt; documentation. Please also refer to &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformcascadingselects.htm#GUID-1B9D791B-5190-440F-8B2B-5FBBA25A49BB" target="_self"&gt;this note in the Cascading and external selects&lt;/A&gt; documentation.&lt;/P&gt;&lt;P&gt;For example, for the &lt;EM&gt;Workarea&lt;/EM&gt; select_one question, you could store the label in another question using a calculation like:&lt;/P&gt;&lt;P&gt;jr:choice-name(${Workarea}, '${Workarea}')&lt;/P&gt;&lt;P&gt;Hope this helps. Best, Jim&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 01:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/output-field-label-and-name-using-calculations-on/m-p/1042260#M33535</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2021-03-31T01:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Output field label AND name [using calculations on geopoints]</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/output-field-label-and-name-using-calculations-on/m-p/1042694#M33561</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;Perfect, thank you so much!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick question, would the &lt;STRONG&gt;jr:choice-name()&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;function work within a if(selected()) formula? For example, if I had 2 separate fields Workarea1 and Workarea2 (only one of either are available in a survey depending on previous selections, both are set as bind::esri:fieldType null), and I wanted to pull only the labels into one single field?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;e.g.&amp;nbsp;if(selected(${previousfield}, 'choice1'),jr:choice-name(${Workarea1}, '${Workarea1}'),jr:choice-name(${Workarea2}, '${Workarea2}'))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 00:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/output-field-label-and-name-using-calculations-on/m-p/1042694#M33561</guid>
      <dc:creator>JulietK</dc:creator>
      <dc:date>2021-04-01T00:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Output field label AND name [using calculations on geopoints]</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/output-field-label-and-name-using-calculations-on/m-p/1042698#M33563</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/96317"&gt;@JulietK&lt;/a&gt;&amp;nbsp;yes the jr:choice-name() function should work inside an if() statement and your example looks good to me.&lt;/P&gt;&lt;P&gt;Best, Jim&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 00:20:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/output-field-label-and-name-using-calculations-on/m-p/1042698#M33563</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2021-04-01T00:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Output field label AND name [using calculations on geopoints]</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/output-field-label-and-name-using-calculations-on/m-p/1042735#M33566</link>
      <description>&lt;P&gt;Excellent, thank you so much for your advice!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 03:13:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/output-field-label-and-name-using-calculations-on/m-p/1042735#M33566</guid>
      <dc:creator>JulietK</dc:creator>
      <dc:date>2021-04-01T03:13:27Z</dc:date>
    </item>
  </channel>
</rss>

