<?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: Concatenating select_multiple with a 'Other' as an option in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/concatenating-select-multiple-with-a-other-as-an/m-p/814868#M14268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple of methods of doing this. &amp;nbsp;If your choice list is small, you could test each choice to see if it is selected and place it in the concat() function:&lt;/P&gt;&lt;P&gt;concat(if(selected(${q},'choice1'),'choice1,',''),&amp;nbsp;&lt;SPAN&gt;if(selected(${q},'choice2'),'choice2,',''), ...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the list is too long, an alternative might be to use a custom JS function to remove the 'other' value from the text. &amp;nbsp;This is beta functionality documented in the &lt;A href="https://bit.ly/S123beta"&gt;Early Adopter Community&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Mar 2019 19:52:59 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2019-03-13T19:52:59Z</dc:date>
    <item>
      <title>Concatenating select_multiple with a 'Other' as an option</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/concatenating-select-multiple-with-a-other-as-an/m-p/814867#M14267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a select_multiple that has a list of birds to choose from. When I choose 'Other', it opens a following question using the relevant field. This setup follows:&amp;nbsp;&lt;A href="https://community.esri.com/groups/survey123/blog/2017/12/11/making-other-work-harder-in-survey123-results"&gt;https://community.esri.com/groups/survey123/blog/2017/12/11/making-other-work-harder-in-survey123-results&lt;/A&gt;, but is adapted for a select_multiple. I then have a third field that is hidden that takes the answers from the previous fields and concatenates them. The concatenation is roughly as follows:&lt;/P&gt;&lt;P&gt;if(selected(${field_one}, 'Other'), if(count-selected(${field_one}) &amp;gt; 1, concat(${field_one}, ', ', ${field_two}, ${field_two}), ${field_one}).&lt;/P&gt;&lt;P&gt;It should read:&lt;/P&gt;&lt;P&gt;if (other is selected in the first field) then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (there is more then the other selected in the first field) then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;concatenate both fields and return&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;just return second field&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;just return first field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that if both fields are concatenated, the selection of other from the first field will still be listed within the string. I can remove it during the concatenation by removing the last 6 characters of the substring, but that requires it to be selected last from field one when the user is filling out the survey.&lt;/P&gt;&lt;P&gt;Is there anyway to force the order the answers are&amp;nbsp;selected or another way to concatenate the results?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 19:58:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/concatenating-select-multiple-with-a-other-as-an/m-p/814867#M14267</guid>
      <dc:creator>ColinDurkin</dc:creator>
      <dc:date>2019-03-12T19:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating select_multiple with a 'Other' as an option</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/concatenating-select-multiple-with-a-other-as-an/m-p/814868#M14268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple of methods of doing this. &amp;nbsp;If your choice list is small, you could test each choice to see if it is selected and place it in the concat() function:&lt;/P&gt;&lt;P&gt;concat(if(selected(${q},'choice1'),'choice1,',''),&amp;nbsp;&lt;SPAN&gt;if(selected(${q},'choice2'),'choice2,',''), ...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the list is too long, an alternative might be to use a custom JS function to remove the 'other' value from the text. &amp;nbsp;This is beta functionality documented in the &lt;A href="https://bit.ly/S123beta"&gt;Early Adopter Community&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 19:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/concatenating-select-multiple-with-a-other-as-an/m-p/814868#M14268</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-03-13T19:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating select_multiple with a 'Other' as an option</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/concatenating-select-multiple-with-a-other-as-an/m-p/814869#M14269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you James. It is a list of habitats that currently sits at about 15 options, so doable by concatenation but prone to error. I don't think I will venture into the early adopter community unless I can continue to explore with my trial account.&lt;/P&gt;&lt;P&gt;I think I'll just export it in a report with the "other" included within some special characters and just remove it using a macro later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 20:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/concatenating-select-multiple-with-a-other-as-an/m-p/814869#M14269</guid>
      <dc:creator>ColinDurkin</dc:creator>
      <dc:date>2019-03-13T20:21:12Z</dc:date>
    </item>
  </channel>
</rss>

