<?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: How to capture values from &amp;quot;select_multiple&amp;quot; question on another &amp;quot;text&amp;quot; question. in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-capture-values-from-quot-select-multiple/m-p/1387983#M55084</link>
    <description>&lt;P&gt;You can use the selected-at function to query each selection made to see if it is 'other' and use that in an if statement to determine if you want to use that selection in a concat. In your example, you have 4 options. This means someone could have chosen other as their 1st, 2nd, 3rd, or 4th option. We will need to check each position. So if you have 5 options, you will need to do this 5 times, if you have 3 options, only 3, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then there is the comma problem. You have to add those manually to your concat, but if they only select 2 choices, you will end up with a bunch of extra commas at the end: red, blue,,,. So to get around that, I added a inner concat statement to only add a comma if a selection was made.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if(selected(${colors}, 'other'), concat(if(selected-at(${colors}, 0) = 'other' or selected-at(${colors}, 0) = '', '', concat(selected-at(${colors}, 0), ', ')), 
if(selected-at(${colors}, 1) = 'other' or selected-at(${colors}, 1) = '', '', concat(selected-at(${colors}, 1), ', ')),
if(selected-at(${colors}, 2) = 'other' or selected-at(${colors}, 2) = '', '', concat(selected-at(${colors}, 2), ', ')),
if(selected-at(${colors}, 3) = 'other' or selected-at(${colors}, 3) = '', '', concat(selected-at(${colors}, 3), ', ')), ${colors_other}), ${colors})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 12:57:46 GMT</pubDate>
    <dc:creator>JenniferAcunto</dc:creator>
    <dc:date>2024-02-28T12:57:46Z</dc:date>
    <item>
      <title>How to capture values from "select_multiple" question on another "text" question.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-capture-values-from-quot-select-multiple/m-p/1387836#M55076</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm not sure if this function is possible, but I want to capture the values from a 'select_multiple' question in&amp;nbsp; another text field. The problem is that the choices also include 'Other color,' which&amp;nbsp; I capture on another text question. I want to capture ALL the selected values from the multiple-choice question except the 'Other' value, and then combine all the values. The final text field will include all the selected values from 'select_multiple' (except 'Other') and the value from the question ${add_other}. (see image). I can't figure out how to concat the list without including "other' as part of the list. Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JB&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="select.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96062i07C08D0059DDC1EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="select.png" alt="select.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update****************SOLVED&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After many attempts, I was able to accomplish the desired outcome. Not the most elegant solution, but it works. The expression checks if 'Other color' is selected in ${colorList}. If it is, it concatenates the part of ${colorList} before and after 'Other color' to exclude it. Otherwise, it keeps ${colorList} unchanged. I combined the final selected list using the 'concat' function in ${allColor}. Here's the final expression in case someone else encounters a similar requirement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(selected(${colorList}, 'Other color'),&lt;BR /&gt;concat(&lt;BR /&gt;substring-before(${IndOrgCollectDataList}, 'Other color'),&lt;BR /&gt;substring-after(${IndOrgCollectDataList}, 'Other color')&lt;BR /&gt;),&lt;BR /&gt;${colorList}&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JB&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 20:37:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-capture-values-from-quot-select-multiple/m-p/1387836#M55076</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2024-02-28T20:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture values from "select_multiple" question on another "text" question.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-capture-values-from-quot-select-multiple/m-p/1387983#M55084</link>
      <description>&lt;P&gt;You can use the selected-at function to query each selection made to see if it is 'other' and use that in an if statement to determine if you want to use that selection in a concat. In your example, you have 4 options. This means someone could have chosen other as their 1st, 2nd, 3rd, or 4th option. We will need to check each position. So if you have 5 options, you will need to do this 5 times, if you have 3 options, only 3, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then there is the comma problem. You have to add those manually to your concat, but if they only select 2 choices, you will end up with a bunch of extra commas at the end: red, blue,,,. So to get around that, I added a inner concat statement to only add a comma if a selection was made.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if(selected(${colors}, 'other'), concat(if(selected-at(${colors}, 0) = 'other' or selected-at(${colors}, 0) = '', '', concat(selected-at(${colors}, 0), ', ')), 
if(selected-at(${colors}, 1) = 'other' or selected-at(${colors}, 1) = '', '', concat(selected-at(${colors}, 1), ', ')),
if(selected-at(${colors}, 2) = 'other' or selected-at(${colors}, 2) = '', '', concat(selected-at(${colors}, 2), ', ')),
if(selected-at(${colors}, 3) = 'other' or selected-at(${colors}, 3) = '', '', concat(selected-at(${colors}, 3), ', ')), ${colors_other}), ${colors})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 12:57:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-capture-values-from-quot-select-multiple/m-p/1387983#M55084</guid>
      <dc:creator>JenniferAcunto</dc:creator>
      <dc:date>2024-02-28T12:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture values from "select_multiple" question on another "text" question.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-capture-values-from-quot-select-multiple/m-p/1388126#M55091</link>
      <description>&lt;P&gt;Hi Jennifer,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your suggestion. What I posted was a simple example to represent what I'm trying to accomplish. Your approach could be a solution to a small list, however my dynamic list (cascading) has between 6 to 28 values&amp;nbsp; that depends&amp;nbsp; on the previous selection. Although not impossible, it would be very diffucult and impractical to build an expression that accounts for all selections. I wish there were a way to concat all values except the string containing "Other".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;JB&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 16:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-capture-values-from-quot-select-multiple/m-p/1388126#M55091</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2024-02-28T16:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture values from "select_multiple" question on another "text" question.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-capture-values-from-quot-select-multiple/m-p/1388291#M55109</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Update****************SOLVED&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After many attempts, I was able to accomplish the desired outcome. Not the most elegant solution, but it works. The expression checks if 'Other color' is selected in ${colorList}. If it is, it concatenates the part of ${colorList} before and after 'Other color' to exclude it. Otherwise, it keeps ${colorList} unchanged. I combined the final selected list using the 'concat' function in ${allColor}. Here's the final expression in case someone else encounters a similar requirement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(selected(${colorList}, 'Other color'),&lt;BR /&gt;concat(&lt;BR /&gt;substring-before(${IndOrgCollectDataList}, 'Other color'),&lt;BR /&gt;substring-after(${IndOrgCollectDataList}, 'Other color')&lt;BR /&gt;),&lt;BR /&gt;${colorList}&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JB&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 20:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-capture-values-from-quot-select-multiple/m-p/1388291#M55109</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2024-02-28T20:38:28Z</dc:date>
    </item>
  </channel>
</rss>

