<?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: select_multiple, relevant in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378832#M54564</link>
    <description>&lt;P&gt;I think this is the correct syntax though.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;contains(${fish_type}, 'salmonid') or contains(${fish_type}, 'other')&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2024 19:58:29 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2024-02-06T19:58:29Z</dc:date>
    <item>
      <title>select_multiple, relevant</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378762#M54561</link>
      <description>&lt;P&gt;I have a simple question regarding a survey123 connect I am building, specifically a 'select_multiple' option.&lt;/P&gt;&lt;P&gt;If field staff catch a fish, they will search through a species list.&lt;/P&gt;&lt;P&gt;I want to provide a filter for "other" and "salmonid". This part is simple.&lt;/P&gt;&lt;P&gt;In the relevant column, I am using the following.&lt;/P&gt;&lt;P&gt;for salmonids I am using &lt;FONT color="#FF0000"&gt;${fish_type}=’salmonid’ &lt;FONT color="#000000"&gt;and for other I am using&lt;/FONT&gt; ${fish_type}=’other’&lt;/FONT&gt;. This works great, no problems.&lt;/P&gt;&lt;P&gt;Occasionally, staff will document multiple fish, possibly one from each filter. In this case, I would like staff to be able to select both the 'other' filter and the 'salmonid' filter.&lt;/P&gt;&lt;P&gt;I have been trying different combinations but failing each time. I expect it should look something like this?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;${fish_type}=’salmonid’ or ${fish_type}= (’salmonid’ and 'other')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;If anyone has suggestions it would be much appreciated.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 17:33:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378762#M54561</guid>
      <dc:creator>WFCAdmin</dc:creator>
      <dc:date>2024-02-06T17:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: select_multiple, relevant</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378771#M54562</link>
      <description>&lt;P&gt;Have you tried contains?&lt;/P&gt;&lt;P&gt;contains(string, substring)&lt;/P&gt;&lt;P&gt;Returns true if the given string contains the substring.&lt;/P&gt;&lt;P&gt;contains(${question_one}, 'red')&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 18:04:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378771#M54562</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-02-06T18:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: select_multiple, relevant</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378787#M54563</link>
      <description>&lt;P&gt;Thank you Doug,&lt;/P&gt;&lt;P&gt;Thank you Doug! I tried the following and it works great.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;contains(${fish_type}, 'salmonid' or (’salmonid’ and 'other'))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 18:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378787#M54563</guid>
      <dc:creator>WFCAdmin</dc:creator>
      <dc:date>2024-02-06T18:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: select_multiple, relevant</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378832#M54564</link>
      <description>&lt;P&gt;I think this is the correct syntax though.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;contains(${fish_type}, 'salmonid') or contains(${fish_type}, 'other')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 19:58:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378832#M54564</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-02-06T19:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: select_multiple, relevant</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378886#M54566</link>
      <description>&lt;P&gt;Why not &lt;STRONG&gt;selected()&lt;/STRONG&gt;? It is intended to be used with select_multiple for this purpose.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;selected(${fish_type}, 'salmonid')&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;EDIT:&lt;/FONT&gt; &lt;FONT color="#000000"&gt;I will add that &lt;STRONG&gt;contains()&amp;nbsp;&lt;/STRONG&gt;does work in places that selected() doesn't, such as a WHERE clause for an Inbox survey. But in this particular case, I'd go with selected() as the standard for ALL select_one and select_multiple.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 22:01:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378886#M54566</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-06T22:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: select_multiple, relevant</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378898#M54569</link>
      <description>&lt;P&gt;Oh yea duh this is for a relevant.&amp;nbsp; So yea that is the better way really.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 22:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-relevant/m-p/1378898#M54569</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-02-06T22:14:07Z</dc:date>
    </item>
  </channel>
</rss>

