<?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: Set select_one value via If..Then in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804271#M11577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The relevant column controls whether a question submits data (and is seen for user-interactive questions). Refer to&amp;nbsp;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformexpressions.htm" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformexpressions.htm"&gt;Form expressions—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;for more information.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2018 22:29:49 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2018-09-05T22:29:49Z</dc:date>
    <item>
      <title>Set select_one value via If..Then</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804266#M11572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a form that uses a bar_code to populate a form via PULLDATA().&amp;nbsp; If the barcode isn't reading/working I want to allow a the user to pick from a SELECT_ONE.&amp;nbsp; How can I structure an if...then statement to say... IF BAR_CODE is != "some_default_value" (barcode IS working) THEN set SELECT_ONE to NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the bar_code cannot be read then have the user pick from the SELECT_ONE.&amp;nbsp; I have attached a form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 19:44:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804266#M11572</guid>
      <dc:creator>deleted-user-8TVt6oc0ewsX</dc:creator>
      <dc:date>2018-09-05T19:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set select_one value via If..Then</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804267#M11573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johnathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest starting by having 3 questions to resolve the ID:&lt;/P&gt;&lt;P&gt;1) The barcode question (id_barcode)&lt;/P&gt;&lt;P&gt;2) The select_one to manually pick (id_list)&lt;/P&gt;&lt;P&gt;3) A calculate question to select the non-null value using the coalesce() function (id_final)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;EM&gt;coalesce(${id_barcode}, ${id_list})&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use the ${id_final} with the pulldata functions. &amp;nbsp;I would suggest having both id_barcode and id_list have the bind:esri:esriFieldType set to &lt;EM&gt;null&lt;/EM&gt; so you don't have 3 different id columns writing to the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 21:40:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804267#M11573</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-09-05T21:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set select_one value via If..Then</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804268#M11574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, that coalesce() function looks powerful.&amp;nbsp; I will take a look.&amp;nbsp; The other part of the question is how can I RESET the values of a Select_One to NULL or none?&amp;nbsp; If you use a bar_code I want to set the select_one to null.&amp;nbsp; If you pick a select_one I want to set the Bar_code value to NULL.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 21:51:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804268#M11574</guid>
      <dc:creator>deleted-user-8TVt6oc0ewsX</dc:creator>
      <dc:date>2018-09-05T21:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set select_one value via If..Then</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804269#M11575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You won't be able to have the questions set each other to null - that would create a circular calculation reference and there isn't a good way to set a question to null. &amp;nbsp;You can set half of the operations in place (i.e., if the dropdown&amp;nbsp;has a value, make the barcode question non-relevant). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The coalesce() function automatically gets the first non-null question of the two. &amp;nbsp;With the way provided above (barcode, dropdown) if the barcode question is non-relevant it will have a null value and automatically be ignored. &amp;nbsp;If the barcode question has nay value, the dropdown question is ignored.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 21:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804269#M11575</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-09-05T21:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set select_one value via If..Then</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804270#M11576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, thanks.&amp;nbsp; How do I make one of the "non-relevant"?&amp;nbsp; The way I have it working now is if someone picks select_one of say "1234", when they then scan a bar_code of "6789", the old value of "1234" is still shown to the user in the select_one.&amp;nbsp; this dosn't allow the coalesce() to work since both fields have values.&amp;nbsp; Is there a way to expose a RESET.&amp;nbsp; I don't want 2 values to be saved with form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 22:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804270#M11576</guid>
      <dc:creator>deleted-user-8TVt6oc0ewsX</dc:creator>
      <dc:date>2018-09-05T22:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set select_one value via If..Then</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804271#M11577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The relevant column controls whether a question submits data (and is seen for user-interactive questions). Refer to&amp;nbsp;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformexpressions.htm" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformexpressions.htm"&gt;Form expressions—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;for more information.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 22:29:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/set-select-one-value-via-if-then/m-p/804271#M11577</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-09-05T22:29:49Z</dc:date>
    </item>
  </channel>
</rss>

