<?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: Required questions not working in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/required-questions-not-working/m-p/1295715#M49673</link>
    <description>&lt;P&gt;Hi Katherine,&amp;nbsp;&lt;BR /&gt;Thanks for your answer. Do you have any resources on where to study how to form these statements? I have tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(${Q1}='Yes, I consent' and ${Q2}='Yes, I live in xyz') or if(${Q1}='Yes, I consent' and ${Q2}='No, I live somewhere else' and ${Q3} !='' and ${Q4} !='')&lt;BR /&gt;&lt;BR /&gt;But I keep getting the error: "If statements require three arguments, 1 provided." The thing is, Q1, Q2, and Q4 are single select, so I understood the = sign was okay. Q3 is text.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand from &lt;A href="https://www.excelcampus.com/functions/how-to-write-if-function/" target="_self"&gt;here&lt;/A&gt; that an if should be "if condition is met, return x if TRUE and y if FALSE." But what would be returned here? I just want the question to show up if the condition is met.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Many thanks for this new user.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jun 2023 09:04:00 GMT</pubDate>
    <dc:creator>AnnaScholl</dc:creator>
    <dc:date>2023-06-05T09:04:00Z</dc:date>
    <item>
      <title>Required questions not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/required-questions-not-working/m-p/1295486#M49664</link>
      <description>&lt;P&gt;In the first page of my survey, I have some questions relating to consent. If the user does not consent, I don't want them to see the rest of the survey, so I have set those pages to hidden unless the first question is 'yes.'&lt;BR /&gt;&lt;BR /&gt;Let's say:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;yes / no&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 2:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes/no&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;City, Country&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 4:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;yes/no&lt;BR /&gt;&lt;BR /&gt;If the user answers No to Q1, none of the following questions should be shown and survey is submitted immediately.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, if user selects yes to Q1 and no to Q2, I need 3 and 4 to become required and visible. However, they are required but they don't "stop" the survey from going forward, the user can still proceed. In the image below, it is possible to click the proceed arrow even though the question is required!!!!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LydiaYoungblood_0-1685731699870.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72296i378F34012673EDFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LydiaYoungblood_0-1685731699870.png" alt="LydiaYoungblood_0-1685731699870.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 18:49:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/required-questions-not-working/m-p/1295486#M49664</guid>
      <dc:creator>AnnaScholl</dc:creator>
      <dc:date>2023-06-02T18:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Required questions not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/required-questions-not-working/m-p/1295496#M49666</link>
      <description>&lt;P&gt;For the subsequent pages that are hidden until the first page is filled out completely, try a logic statement that covers every scenario.&lt;/P&gt;&lt;P&gt;Something like this (my own "pseudocode", not official syntax)...&lt;/P&gt;&lt;P&gt;[page is visible] IF (Q1 = 'Yes' AND Q2 = 'Yes') OR (Q1 = 'Yes' AND Q2 = 'No' AND Q3 != '' AND Q4 != '')&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 19:10:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/required-questions-not-working/m-p/1295496#M49666</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2023-06-02T19:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Required questions not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/required-questions-not-working/m-p/1295715#M49673</link>
      <description>&lt;P&gt;Hi Katherine,&amp;nbsp;&lt;BR /&gt;Thanks for your answer. Do you have any resources on where to study how to form these statements? I have tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(${Q1}='Yes, I consent' and ${Q2}='Yes, I live in xyz') or if(${Q1}='Yes, I consent' and ${Q2}='No, I live somewhere else' and ${Q3} !='' and ${Q4} !='')&lt;BR /&gt;&lt;BR /&gt;But I keep getting the error: "If statements require three arguments, 1 provided." The thing is, Q1, Q2, and Q4 are single select, so I understood the = sign was okay. Q3 is text.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand from &lt;A href="https://www.excelcampus.com/functions/how-to-write-if-function/" target="_self"&gt;here&lt;/A&gt; that an if should be "if condition is met, return x if TRUE and y if FALSE." But what would be returned here? I just want the question to show up if the condition is met.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Many thanks for this new user.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 09:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/required-questions-not-working/m-p/1295715#M49673</guid>
      <dc:creator>AnnaScholl</dc:creator>
      <dc:date>2023-06-05T09:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Required questions not working</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/required-questions-not-working/m-p/1295762#M49683</link>
      <description>&lt;P&gt;It looks like I didn't need ifs afterall...&lt;BR /&gt;&lt;BR /&gt;I used&amp;nbsp;&lt;BR /&gt;(${Q1}='yes' and ${Q2}='yes_') or (${Q!}='yes' and ${Q2}='no_' and ${Q4}='yes_gdpr').&lt;BR /&gt;&lt;BR /&gt;Unfortunately Q3 was a text field which required that the user hit their enter key for the expression to be valid, so had to take that one out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 12:49:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/required-questions-not-working/m-p/1295762#M49683</guid>
      <dc:creator>AnnaScholl</dc:creator>
      <dc:date>2023-06-05T12:49:57Z</dc:date>
    </item>
  </channel>
</rss>

