<?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: Survey123 If Statements in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845105#M21834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selected() function is used to create a condition that is then used by an if() function to set the value:&lt;/P&gt;&lt;P&gt;if(selected(${CALLTYPE}, 'CarbonMonoxide'), 'X', 'Not Carbon Monoxide')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2018 19:42:05 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2018-05-23T19:42:05Z</dc:date>
    <item>
      <title>Survey123 If Statements</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845102#M21831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field with a select_one type. How can I default text into fields based on the select_one choice? I tried looking into If statements but I couldn't find anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 18:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845102#M21831</guid>
      <dc:creator>JordanMiller4</dc:creator>
      <dc:date>2018-05-23T18:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 If Statements</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845103#M21832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can calculate field based on previous answers. &amp;nbsp;In the case of a select_one question, you can use either an = to check (ex: ${q} = 'a') or use the selected() function (ex: selected(${q}, 'a') ) as the evaluation part of an if() statement. Note that both values when the statement is true and when the statement is false are needed. &amp;nbsp;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm"&gt;Formulas—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;provides more documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 18:56:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845103#M21832</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-05-23T18:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 If Statements</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845104#M21833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't work but how do I default the field to X text? I don't see anywhere in the formula's to populate a value when another field is selected.&lt;/P&gt;&lt;P&gt;select(${CALLTYPE},'CarbonMonoxide', = 'X')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 19:35:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845104#M21833</guid>
      <dc:creator>JordanMiller4</dc:creator>
      <dc:date>2018-05-23T19:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 If Statements</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845105#M21834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selected() function is used to create a condition that is then used by an if() function to set the value:&lt;/P&gt;&lt;P&gt;if(selected(${CALLTYPE}, 'CarbonMonoxide'), 'X', 'Not Carbon Monoxide')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 19:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845105#M21834</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-05-23T19:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 If Statements</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845106#M21835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! If anyone comes across this formula please make sure you place it in the "Calculations" field and not the relevant field because nothing will happen.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 20:16:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845106#M21835</guid>
      <dc:creator>JordanMiller4</dc:creator>
      <dc:date>2018-05-23T20:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 If Statements</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845107#M21836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c;"&gt;if(${wradio_current} ='A', 'None', if(${wradio_current} ='B', 'None', '&lt;STRONG&gt;&lt;EM&gt;user input from select_one&lt;/EM&gt;&lt;/STRONG&gt;'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c;"&gt;Is there a way to let the user input the else value?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 16:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-statements/m-p/845107#M21836</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2018-06-20T16:04:40Z</dc:date>
    </item>
  </channel>
</rss>

