<?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: Constraint if statement with two select multiple questions in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155081#M41382</link>
    <description>&lt;P&gt;So, I'm not completely sure without testing it myself, but I believe select_multiple questions store the answer as a string, separated by commas. So instead of&amp;nbsp;&lt;EM&gt;'One_time_fee' and 'Monthly_fee'&lt;/EM&gt;, it would be&amp;nbsp;&lt;EM&gt;'One_time_fee, Monthly_fee'&lt;/EM&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 23:24:55 GMT</pubDate>
    <dc:creator>Katie_Clark</dc:creator>
    <dc:date>2022-03-17T23:24:55Z</dc:date>
    <item>
      <title>Constraint if statement with two select multiple questions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155051#M41381</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having trouble with creating an IF statement with two select multiple questions in the constraint field.&lt;/P&gt;&lt;P&gt;Here is what I need to happen:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="20220316_141750.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36653i25C87946353F6BAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="20220316_141750.jpg" alt="20220316_141750.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I have for the if statement:&lt;/P&gt;&lt;P&gt;if(selected(${extrarequest}, 'Extra_96g_Garbage'), 'One_time_fee' and 'Monthly_fee',&lt;BR /&gt;if(selected(${extrarequest}, 'Extra_96g_Recycle'), 'No_fee',&lt;BR /&gt;if(selected(${extrarequest}, 'Extra_96g_Garbage') and selected(${extrarequest}, 'Extra_96g_Recycle'), 'One_time_fee' and 'Monthly_fee' and 'No_fee',&lt;BR /&gt;'Remove_Recycle')))&lt;/P&gt;&lt;P&gt;I don't get any errors however, the constraint is not wrong correctly. I am sure I am missing something.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213" target="_blank"&gt;@JamesTedrick&lt;/A&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 21:48:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155051#M41381</guid>
      <dc:creator>BradenWarns</dc:creator>
      <dc:date>2022-03-17T21:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Constraint if statement with two select multiple questions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155081#M41382</link>
      <description>&lt;P&gt;So, I'm not completely sure without testing it myself, but I believe select_multiple questions store the answer as a string, separated by commas. So instead of&amp;nbsp;&lt;EM&gt;'One_time_fee' and 'Monthly_fee'&lt;/EM&gt;, it would be&amp;nbsp;&lt;EM&gt;'One_time_fee, Monthly_fee'&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 23:24:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155081#M41382</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2022-03-17T23:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Constraint if statement with two select multiple questions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155250#M41389</link>
      <description>&lt;P&gt;I tried your suggestion. I did not get an error, but it still is not functioning correctly. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 15:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155250#M41389</guid>
      <dc:creator>BradenWarns</dc:creator>
      <dc:date>2022-03-18T15:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Constraint if statement with two select multiple questions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155254#M41390</link>
      <description>&lt;P&gt;Would you be able to share your XLS form?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 15:13:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155254#M41390</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2022-03-18T15:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Constraint if statement with two select multiple questions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155822#M41429</link>
      <description>&lt;P&gt;I decided to change this section. I broke up the second multiple questions into single questions. Then used a simple selected function in the relevant field. Much easier to work with. Thanks for your help &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/232739"&gt;@Katie_Clark&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 18:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155822#M41429</guid>
      <dc:creator>BradenWarns</dc:creator>
      <dc:date>2022-03-21T18:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Constraint if statement with two select multiple questions</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155849#M41431</link>
      <description>&lt;P&gt;Happy to hear you found a workaround!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 19:35:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/constraint-if-statement-with-two-select-multiple/m-p/1155849#M41431</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2022-03-21T19:35:43Z</dc:date>
    </item>
  </channel>
</rss>

