<?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: Contraint for select multiple in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1246945#M46870</link>
    <description>&lt;P&gt;I understand that can work. However, I want the logic to be the same if they select 'unknown'.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 18:52:47 GMT</pubDate>
    <dc:creator>AlexDale2</dc:creator>
    <dc:date>2023-01-10T18:52:47Z</dc:date>
    <item>
      <title>Contraint for select multiple</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1246643#M46862</link>
      <description>&lt;P&gt;I have a select multiple question that has the following options:&lt;/P&gt;&lt;P&gt;red, black, blue, orange, unknown, refused&lt;/P&gt;&lt;P&gt;If someone selects unknown and/or refused,&amp;nbsp; I want them to not be able to select red, black, blue, orange.&lt;/P&gt;&lt;P&gt;currently I have this:&lt;/P&gt;&lt;TABLE width="159"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="159"&gt;not(selected(.,'refused') or selected(.,'unknown') and (selected(.,'red') or selected(.,'black') or selected(.,'blue') or selected(.,'orange')))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seemed to work fine, but I now noticed if you select refuse alone it will throw my contstraint message.&lt;/P&gt;&lt;P&gt;Any input?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 23:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1246643#M46862</guid>
      <dc:creator>AlexDale2</dc:creator>
      <dc:date>2023-01-09T23:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Contraint for select multiple</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1246654#M46863</link>
      <description>&lt;P&gt;Try using the count selected function? if you pick X or Y, count selection should not be greater than one. e.g. update this:&lt;/P&gt;&lt;P&gt;not((selected(.,'refused)) and (count-selected(${currentfield})&amp;gt;1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 00:49:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1246654#M46863</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-01-10T00:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Contraint for select multiple</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1246945#M46870</link>
      <description>&lt;P&gt;I understand that can work. However, I want the logic to be the same if they select 'unknown'.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 18:52:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1246945#M46870</guid>
      <dc:creator>AlexDale2</dc:creator>
      <dc:date>2023-01-10T18:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Contraint for select multiple</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1246980#M46873</link>
      <description>not((selected(.,'refused') or selected(.,'unknown')) and&lt;BR /&gt;(count-selected(${currentfield})&amp;gt;1))&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jan 2023 20:04:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1246980#M46873</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-01-10T20:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Contraint for select multiple</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1247039#M46877</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/412943"&gt;@ChristopherCounsell&lt;/a&gt;! That worked, I was missing the second parentheses around selected and unknown.&lt;/P&gt;&lt;P&gt;I appreciate your help and time.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 21:46:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1247039#M46877</guid>
      <dc:creator>AlexDale2</dc:creator>
      <dc:date>2023-01-10T21:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Contraint for select multiple</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1247058#M46880</link>
      <description>&lt;P&gt;Thanks and sorry I forgot to include the 'or' statement in the original answer &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Would definitely recommend count-selected, or other ways (string length limits) instead of multiple or statements. Faster and makes it easier to accommodate additional values being added to the list down the track.&lt;/P&gt;&lt;P&gt;Please mark the answer as correct so I can gain those sweet internet points &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 22:07:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/contraint-for-select-multiple/m-p/1247058#M46880</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-01-10T22:07:16Z</dc:date>
    </item>
  </channel>
</rss>

