<?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: How to use an if statement to conditionally give users a choice, otherwise calculate the answer in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-an-if-statement-to-conditionally-give/m-p/1568941#M60522</link>
    <description>&lt;P&gt;You can use empty string "" for this.&amp;nbsp; It will let the user add something.&amp;nbsp; You will see a recalc icon appear but as long as they do not tap it then the value will stay.&amp;nbsp; You can also use visible to hide it if you want.&amp;nbsp; Do not use relevant or it will be "" when it hides.&amp;nbsp; Visible hides the question but relevant changes the stored value to "".&lt;/P&gt;&lt;P&gt;You can also make your if simpler&lt;/P&gt;&lt;P&gt;if(${nest_type} = "brood" or ${nest_type} = "inactive_knownfate", "no", "")&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2024 16:46:11 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2024-12-16T16:46:11Z</dc:date>
    <item>
      <title>How to use an if statement to conditionally give users a choice, otherwise calculate the answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-an-if-statement-to-conditionally-give/m-p/1568931#M60521</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to design a field that will automatically calculate an answer and be hidden, except in one scenario. So, when the user answers the question for "nest_type" (select_one), if they select "brood" or "inactive" then I would like the answer to the exclosure field to be calculated as "no". I also want it to be able to provide the user with a choice between "yes" or "no" if they select a nest_type of "nest".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write an if statement in the calculate field, but I'm not sure how to provide the "choice" if the conditions are false. So I'm trying:&amp;nbsp;if(${nest_type} = "brood", "no", if(${nest_type} = "inactive_knownfate", "no", )) ... but I need to know what to put in the blank for that last question to essentially leave the question open to be answered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my relevant field set to another field: ${Nest_Present} = 'yes'&lt;/P&gt;&lt;P&gt;And I have it set in body::esri:visible as: ${nest_type} = 'nest'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize I could just have the question default to no and using the body::esri:visible field have the question not show up unless the nest type was nest, but I don't want to have the "no" already selected.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can someone help me get that "blank question" situation from an if statement? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 16:36:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-an-if-statement-to-conditionally-give/m-p/1568931#M60521</guid>
      <dc:creator>WilderNiss1</dc:creator>
      <dc:date>2024-12-16T16:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an if statement to conditionally give users a choice, otherwise calculate the answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-an-if-statement-to-conditionally-give/m-p/1568941#M60522</link>
      <description>&lt;P&gt;You can use empty string "" for this.&amp;nbsp; It will let the user add something.&amp;nbsp; You will see a recalc icon appear but as long as they do not tap it then the value will stay.&amp;nbsp; You can also use visible to hide it if you want.&amp;nbsp; Do not use relevant or it will be "" when it hides.&amp;nbsp; Visible hides the question but relevant changes the stored value to "".&lt;/P&gt;&lt;P&gt;You can also make your if simpler&lt;/P&gt;&lt;P&gt;if(${nest_type} = "brood" or ${nest_type} = "inactive_knownfate", "no", "")&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 16:46:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-an-if-statement-to-conditionally-give/m-p/1568941#M60522</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-12-16T16:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an if statement to conditionally give users a choice, otherwise calculate the answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-an-if-statement-to-conditionally-give/m-p/1568947#M60523</link>
      <description>&lt;P&gt;Awesome, thank you! I actually figured that out and was coming back here to state it, but I'm still glad I posted since I didn't know you could use an OR statement with an if like that. Makes sense though since the conditions for either of those options have the same outcome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you suggesting I place this formula in visible? Right now I just have&amp;nbsp;&lt;SPAN&gt;${nest_type} = 'nest' in the visible column, which works well. This formula is in the calculation field.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 16:52:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-an-if-statement-to-conditionally-give/m-p/1568947#M60523</guid>
      <dc:creator>WilderNiss1</dc:creator>
      <dc:date>2024-12-16T16:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an if statement to conditionally give users a choice, otherwise calculate the answer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-an-if-statement-to-conditionally-give/m-p/1568948#M60524</link>
      <description>&lt;P&gt;sounds like you have it correct&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 16:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-an-if-statement-to-conditionally-give/m-p/1568948#M60524</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-12-16T16:54:55Z</dc:date>
    </item>
  </channel>
</rss>

