<?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: Using the answers to a multiple-select question to filter the choices of another question in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/using-the-answers-to-a-multiple-select-question-to/m-p/1091239#M36657</link>
    <description>&lt;P&gt;I tried using selected-at and it worked.&amp;nbsp; You would need to write out enough select-at to cover the max number of choices.&amp;nbsp; See attached but your choice filter would be.&lt;/P&gt;&lt;P&gt;selected(selected-at(${fruit}, 0), fruit) or selected(selected-at(${fruit}, 1), fruit) or selected(selected-at(${fruit}, 2), fruit)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Double select multiple.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21363i6DB20FA15A3C19CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Double select multiple.gif" alt="Double select multiple.gif" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Double select multiple.gif&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;That said I think the data you got from this would be really hard to analyze later.&amp;nbsp; You would have so many long strings of comma separated values with all the fruits and types intermixed.&amp;nbsp; Any time I have to use a select multiple I pull them back apart into rows later in script.&amp;nbsp; Not sure the use case here.&amp;nbsp; Also select multiple cannot have spaces in the values.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Aug 2021 14:36:51 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2021-08-23T14:36:51Z</dc:date>
    <item>
      <title>Using the answers to a multiple-select question to filter the choices of another question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-the-answers-to-a-multiple-select-question-to/m-p/1090998#M36649</link>
      <description>&lt;P&gt;I'm looking at making a cascading choice list in which the question to filter the choices by is multi-select.&lt;/P&gt;&lt;P&gt;For example (pivoted for readability):&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="25px"&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Fruit&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD height="25px"&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Relevant choices&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Apple&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Red Delicious, Yellow Delicious&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Grape&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Merlot, Concord&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Blueberry&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Ivanhoe, Patriot, Violetta&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I were to select both "Apple" and "Grape", I would want "Red Delicious", "Yellow Delicious", "Merlot", and "Concord" to all show up as options in the next question.&lt;/P&gt;&lt;P&gt;I thought I had seen somewhere that it was possible by using selected() in the choice filter, but that appears to require specific choices be named.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 22:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-the-answers-to-a-multiple-select-question-to/m-p/1090998#M36649</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2021-08-20T22:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using the answers to a multiple-select question to filter the choices of another question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-the-answers-to-a-multiple-select-question-to/m-p/1091239#M36657</link>
      <description>&lt;P&gt;I tried using selected-at and it worked.&amp;nbsp; You would need to write out enough select-at to cover the max number of choices.&amp;nbsp; See attached but your choice filter would be.&lt;/P&gt;&lt;P&gt;selected(selected-at(${fruit}, 0), fruit) or selected(selected-at(${fruit}, 1), fruit) or selected(selected-at(${fruit}, 2), fruit)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Double select multiple.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21363i6DB20FA15A3C19CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Double select multiple.gif" alt="Double select multiple.gif" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Double select multiple.gif&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;That said I think the data you got from this would be really hard to analyze later.&amp;nbsp; You would have so many long strings of comma separated values with all the fruits and types intermixed.&amp;nbsp; Any time I have to use a select multiple I pull them back apart into rows later in script.&amp;nbsp; Not sure the use case here.&amp;nbsp; Also select multiple cannot have spaces in the values.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 14:36:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-the-answers-to-a-multiple-select-question-to/m-p/1091239#M36657</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-08-23T14:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using the answers to a multiple-select question to filter the choices of another question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-the-answers-to-a-multiple-select-question-to/m-p/1091284#M36661</link>
      <description>&lt;P&gt;Thanks for trying that out.&lt;/P&gt;&lt;P&gt;The main thing is I'm trying to make as little work on the end-user's end if I can make the computer do all the work later. In this case, I would have as many as 500 "fruit" to choose from, each of which has 1-5 "types".&lt;/P&gt;&lt;P&gt;While I have it set up as a repeat, I'd like to&amp;nbsp; not have the user answer 500 repeats if they could answer like, five of them (per genus, for the sake of the metaphor).&lt;/P&gt;&lt;P&gt;I was already going to split the last multi-select after survey submission (Thank you again JohannesLindner); am spitballing my way through making it work for two multiselects today, which will hopefully involve some data-validation.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit 8/27/2021:&lt;/P&gt;&lt;P&gt;Apparently selected() does work fine as a choice filter for multi-selects.&amp;nbsp;&lt;BR /&gt;Syntax is &lt;STRONG&gt;selected(${Question}, [Filter range])&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Selected-at()&lt;/STRONG&gt; works well, but it gets wordy. I've ended up using it to validate whether a question has been answered at all before popping up with another question to answer&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-choice-filters/ba-p/894046" target="_blank"&gt;Survey123 Tricks of the Trade: Choice Filters - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 16:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-the-answers-to-a-multiple-select-question-to/m-p/1091284#M36661</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2021-08-27T16:49:32Z</dc:date>
    </item>
  </channel>
</rss>

