<?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 join() from repeats, but return labels? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/824869#M16755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a repeat. Inside the repeat is a select_one field from a list like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="border-width: 1px; border-color: #000000;" width="331"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="94"&gt;&lt;STRONG&gt;list_name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="122"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="115"&gt;&lt;STRONG&gt;label&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="94"&gt;proplist&lt;/TD&gt;&lt;TD width="122"&gt;1&lt;/TD&gt;&lt;TD width="115"&gt;prop1&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;proplist&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;prop2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;proplist&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;prop3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;proplist&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;prop4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;proplist&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;prop5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to present the user with a list of what they have chosen in the repeat - the join( ) command is useful here, and works, but returns the name from the entry and not the label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I enter 2 records in my repeat, where I chose from the list prop1,prop3.&amp;nbsp; The output of join shows "1,3".&amp;nbsp; Which is correct.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join() on its own:&amp;nbsp;&lt;EM&gt;&amp;nbsp;join(',',${property})&lt;/EM&gt;&amp;nbsp; &amp;nbsp;(shows 1,3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is the join() to show "prop1,prop3".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using jr:choice-name inside my join() function but that doesn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join() with my non-working use of jr:choice-name:&amp;nbsp; &amp;nbsp;&lt;EM&gt;join(',',jr:choice-name(${property},'${property}'))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps someone can point me in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample survey attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2020 17:10:25 GMT</pubDate>
    <dc:creator>TomSchwartzman</dc:creator>
    <dc:date>2020-07-24T17:10:25Z</dc:date>
    <item>
      <title>join() from repeats, but return labels?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/824869#M16755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a repeat. Inside the repeat is a select_one field from a list like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="border-width: 1px; border-color: #000000;" width="331"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="94"&gt;&lt;STRONG&gt;list_name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="122"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="115"&gt;&lt;STRONG&gt;label&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="94"&gt;proplist&lt;/TD&gt;&lt;TD width="122"&gt;1&lt;/TD&gt;&lt;TD width="115"&gt;prop1&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;proplist&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;prop2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;proplist&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;prop3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;proplist&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;prop4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;proplist&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;prop5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to present the user with a list of what they have chosen in the repeat - the join( ) command is useful here, and works, but returns the name from the entry and not the label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I enter 2 records in my repeat, where I chose from the list prop1,prop3.&amp;nbsp; The output of join shows "1,3".&amp;nbsp; Which is correct.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join() on its own:&amp;nbsp;&lt;EM&gt;&amp;nbsp;join(',',${property})&lt;/EM&gt;&amp;nbsp; &amp;nbsp;(shows 1,3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is the join() to show "prop1,prop3".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using jr:choice-name inside my join() function but that doesn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join() with my non-working use of jr:choice-name:&amp;nbsp; &amp;nbsp;&lt;EM&gt;join(',',jr:choice-name(${property},'${property}'))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps someone can point me in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample survey attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2020 17:10:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/824869#M16755</guid>
      <dc:creator>TomSchwartzman</dc:creator>
      <dc:date>2020-07-24T17:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: join() from repeats, but return labels?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/824870#M16756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried moving the jr choice name outside of the join expression? Put each one in is own hidden/null field so that the label is displayed only in that field for each response, and then do the join based on those hidden/null fields, that should work as you are expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 02:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/824870#M16756</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-07-27T02:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: join() from repeats, but return labels?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/824871#M16757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Phil.&amp;nbsp; That does work, but not in my use case but only in the web survey.&amp;nbsp; In my repeat I added a hidden null field of the jr:choice-name, and then outside the repeat I join those up.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However in my survey, where you specify the # of repeats before getting into the repeats themselves, this does not work right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the survey app, I see prop1,prop2,etc and it grows as I add properties to the repeat.&amp;nbsp; That is good, and what I expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the web app, say I choose 3 repeats in advance, I see prop1,prop1,prop1,prop2,prop2,prop2....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will upload screenshots and xlsx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 19:36:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/824871#M16757</guid>
      <dc:creator>TomSchwartzman</dc:creator>
      <dc:date>2020-07-27T19:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: join() from repeats, but return labels?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/824872#M16758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/2585"&gt;Tom Schwartzman&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Thanks for the feedback and the test XLSForm file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After looking into the issue, I can confirm it's a bug that if you want to join the labels of a select_one question in a repeat by using join() + jr:choice-name() functions, the result will be duplicated N times where N is the current repeat count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've logged one issue in our dev repo. It will be good if you can also raise an issue to Esri Support to prioritize the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Zhifang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 17:45:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/824872#M16758</guid>
      <dc:creator>ZhifangWang</dc:creator>
      <dc:date>2020-07-28T17:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: join() from repeats, but return labels?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/824873#M16759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Zhifang.&amp;nbsp; Will submit to support as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 18:40:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/824873#M16759</guid>
      <dc:creator>TomSchwartzman</dc:creator>
      <dc:date>2020-07-28T18:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: join() from repeats, but return labels?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/1002489#M31150</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/559"&gt;@TomSchwartzman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FYI, the issue has been fixed in the web app in our&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/what-s-new-in-survey123-october-2020/ba-p/895674" target="_self"&gt;October release&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;, you can have a try and please let us know if you still observe any issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 11:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/join-from-repeats-but-return-labels/m-p/1002489#M31150</guid>
      <dc:creator>ZhifangWang</dc:creator>
      <dc:date>2020-11-18T11:39:21Z</dc:date>
    </item>
  </channel>
</rss>

