<?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 Using null or not null values in a field to set a default select_one choice in Survey 123 Connect in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/using-null-or-not-null-values-in-a-field-to-set-a/m-p/1251868#M47122</link>
    <description>&lt;P&gt;Upon loading a survey, I am trying to make an answer for a select_one question default to either 'new' or 'existing' based on whether or not another value in my table is null or not null. What would be the code for this, and would it be entered in the default or calculation column? Can this be done with an if/then statement?&lt;BR /&gt;&lt;BR /&gt;Am I at least in the ballpark with this or is there an easier way?&lt;BR /&gt;if(${Location} = null),select_one = 'new') or if(${Location} = notnull),select_one = 'existing')&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 14:59:42 GMT</pubDate>
    <dc:creator>JoeDahlen</dc:creator>
    <dc:date>2023-01-26T14:59:42Z</dc:date>
    <item>
      <title>Using null or not null values in a field to set a default select_one choice in Survey 123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-null-or-not-null-values-in-a-field-to-set-a/m-p/1251868#M47122</link>
      <description>&lt;P&gt;Upon loading a survey, I am trying to make an answer for a select_one question default to either 'new' or 'existing' based on whether or not another value in my table is null or not null. What would be the code for this, and would it be entered in the default or calculation column? Can this be done with an if/then statement?&lt;BR /&gt;&lt;BR /&gt;Am I at least in the ballpark with this or is there an easier way?&lt;BR /&gt;if(${Location} = null),select_one = 'new') or if(${Location} = notnull),select_one = 'existing')&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 14:59:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-null-or-not-null-values-in-a-field-to-set-a/m-p/1251868#M47122</guid>
      <dc:creator>JoeDahlen</dc:creator>
      <dc:date>2023-01-26T14:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using null or not null values in a field to set a default select_one choice in Survey 123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-null-or-not-null-values-in-a-field-to-set-a/m-p/1251908#M47125</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/650937"&gt;@JoeDahlen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think something like this should work for you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if((string-length(${&lt;SPAN&gt;Location&lt;/SPAN&gt;})&amp;gt;0),'existing','new')&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Place this in your calculation field&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 16:13:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-null-or-not-null-values-in-a-field-to-set-a/m-p/1251908#M47125</guid>
      <dc:creator>Richard_Purkis</dc:creator>
      <dc:date>2023-01-26T16:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using null or not null values in a field to set a default select_one choice in Survey 123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-null-or-not-null-values-in-a-field-to-set-a/m-p/1252167#M47142</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/361875"&gt;@Richard_Purkis&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;Formula worked great. The only thing I had to add was under &lt;STRONG&gt;bind::esri:parameters&lt;/STRONG&gt;, &lt;STRONG&gt;calculationMode=always&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 22:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-null-or-not-null-values-in-a-field-to-set-a/m-p/1252167#M47142</guid>
      <dc:creator>JoeDahlen</dc:creator>
      <dc:date>2023-01-26T22:51:00Z</dc:date>
    </item>
  </channel>
</rss>

