<?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: Multiple Choice Contstraint in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252330#M47154</link>
    <description>&lt;P&gt;Automatically selecting/unselecting choices in a select_multiple, based on the user's selection, it not possible. This would involve a calculation in the select_multiple that uses select_multiple selection as an input. The XLSForm validator will flag this as a dependency cycle.&lt;/P&gt;&lt;P&gt;Logically, an expression like this would achieve what&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/216329"&gt;@SeanWalsh&lt;/a&gt;&amp;nbsp;requested.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IsmaelChivite_0-1674827311902.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61453iE4909964D77BEDA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="IsmaelChivite_0-1674827311902.png" alt="IsmaelChivite_0-1674827311902.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, this will return an XLSForm validation error.&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/361875"&gt;@Richard_Purkis&lt;/a&gt;&amp;nbsp;suggested, one could put together an expression to validate the user input. That is, to make sure that if Neither is selected, no other options are.&lt;/P&gt;&lt;P&gt;This is one example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IsmaelChivite_1-1674828042216.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61454i1D5AB032FBC2F9ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="IsmaelChivite_1-1674828042216.png" alt="IsmaelChivite_1-1674828042216.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note that the expression is not in the calculation column. Instead, it is a constraint.&lt;/P&gt;&lt;P&gt;All in all, the post was a bit confusing because the title&amp;nbsp;Multiple Choice Contstraint hinted that&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/216329"&gt;@SeanWalsh&lt;/a&gt;&amp;nbsp;wanted to build a constraint, but then the description clarified that what was needed was a recalculation. In any event: You can get a constraint, but not recalculate the values.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 14:04:28 GMT</pubDate>
    <dc:creator>IsmaelChivite</dc:creator>
    <dc:date>2023-01-27T14:04:28Z</dc:date>
    <item>
      <title>Multiple Choice Contstraint</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252281#M47147</link>
      <description>&lt;P&gt;I have a multiple choice question with three options, the third being neither.&amp;nbsp; I want the survey to de-select the other(s) if neither is chosen or vice versa.&amp;nbsp; I found the below code when using google but nothing happens when i use that.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;not(selected(., 'option_c') and selected(., 'not_option_c'))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 12:22:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252281#M47147</guid>
      <dc:creator>SeanWalsh</dc:creator>
      <dc:date>2023-01-27T12:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Choice Contstraint</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252305#M47150</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/216329"&gt;@SeanWalsh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to make it work with the following syntax:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;not(selected(${exampleChoice}, 'not_option_c') and count-selected(${exampleChoice}) &amp;gt; 1)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It doesn't deselect as such but it will return invalid if the constraint fails&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:15:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252305#M47150</guid>
      <dc:creator>Richard_Purkis</dc:creator>
      <dc:date>2023-01-27T13:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Choice Contstraint</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252310#M47152</link>
      <description>&lt;P&gt;That didn't do anything.&amp;nbsp; Maybe I'm plugging in the wrong information? Also this goes in the constraint column correct?&lt;/P&gt;&lt;TABLE width="159"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="159"&gt;not(selected(${form_d_foultime}, 'Neither') and count-selected(${form_d_foultime}) &amp;gt; 1)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252310#M47152</guid>
      <dc:creator>SeanWalsh</dc:creator>
      <dc:date>2023-01-27T13:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Choice Contstraint</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252327#M47153</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/216329"&gt;@SeanWalsh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should work in both the field app and web browser. May you share your xlsx form either in a reply or via direct message.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252327#M47153</guid>
      <dc:creator>Richard_Purkis</dc:creator>
      <dc:date>2023-01-27T13:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Choice Contstraint</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252330#M47154</link>
      <description>&lt;P&gt;Automatically selecting/unselecting choices in a select_multiple, based on the user's selection, it not possible. This would involve a calculation in the select_multiple that uses select_multiple selection as an input. The XLSForm validator will flag this as a dependency cycle.&lt;/P&gt;&lt;P&gt;Logically, an expression like this would achieve what&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/216329"&gt;@SeanWalsh&lt;/a&gt;&amp;nbsp;requested.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IsmaelChivite_0-1674827311902.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61453iE4909964D77BEDA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="IsmaelChivite_0-1674827311902.png" alt="IsmaelChivite_0-1674827311902.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, this will return an XLSForm validation error.&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/361875"&gt;@Richard_Purkis&lt;/a&gt;&amp;nbsp;suggested, one could put together an expression to validate the user input. That is, to make sure that if Neither is selected, no other options are.&lt;/P&gt;&lt;P&gt;This is one example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IsmaelChivite_1-1674828042216.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61454i1D5AB032FBC2F9ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="IsmaelChivite_1-1674828042216.png" alt="IsmaelChivite_1-1674828042216.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note that the expression is not in the calculation column. Instead, it is a constraint.&lt;/P&gt;&lt;P&gt;All in all, the post was a bit confusing because the title&amp;nbsp;Multiple Choice Contstraint hinted that&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/216329"&gt;@SeanWalsh&lt;/a&gt;&amp;nbsp;wanted to build a constraint, but then the description clarified that what was needed was a recalculation. In any event: You can get a constraint, but not recalculate the values.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 14:04:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252330#M47154</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2023-01-27T14:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Choice Contstraint</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252342#M47156</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/216329"&gt;@SeanWalsh&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;You need to match the capitalization of your neither in the choice list, since the response would be 'neither', your statement looking for 'Neither' would never evaluate to False.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;not(selected(${form_d_foultime}, 'neither') and count-selected(${form_d_foultime}) &amp;gt; 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 14:35:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/multiple-choice-contstraint/m-p/1252342#M47156</guid>
      <dc:creator>Richard_Purkis</dc:creator>
      <dc:date>2023-01-27T14:35:01Z</dc:date>
    </item>
  </channel>
</rss>

