<?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: Setting a question to NULL in a if/else statement in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/setting-a-question-to-null-in-a-if-else-statement/m-p/1577424#M60907</link>
    <description>&lt;P&gt;Sorry but it has been like this for years so it is probably not going to change anytime soon.&amp;nbsp; Also 80 pulldata calls would probably make your form rather slow.&amp;nbsp; May want to consider a different workflow.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 15:16:31 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2025-01-21T15:16:31Z</dc:date>
    <item>
      <title>Setting a question to NULL in a if/else statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/setting-a-question-to-null-in-a-if-else-statement/m-p/1575844#M60831</link>
      <description>&lt;P&gt;Hi there, wondering if there exists a way to set a question to &lt;STRONG&gt;NULL (or None) &lt;/STRONG&gt;inside a if/else statement.&lt;/P&gt;&lt;P&gt;I have a kind of large survey where at the begin I call a &lt;STRONG&gt;pulldata()&lt;/STRONG&gt; function to know if a register exists, then save the globalid as question (&lt;STRONG&gt;${feature_globalid}&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;After that in another question, I check if there exists such feature using: &lt;STRONG&gt;string-length(${feature_globalid}) &amp;gt; 0 , &lt;/STRONG&gt;to avoid calling pulldata to get other properties (from relationships tables).&lt;/P&gt;&lt;P&gt;So, in the &lt;STRONG&gt;calculation&lt;/STRONG&gt; column, I am using something like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(string-length(${feature_globalid}) &amp;gt; 0, pulldata("@layer", "getValue", "attributes.x", ${url_y}, ${where_z}), '')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but I DO not want to fill te question with &lt;STRONG&gt;''&lt;/STRONG&gt; when there is no exist such feature.&amp;nbsp; I want the question to be NULL (for webhook reasons).&lt;/P&gt;&lt;P&gt;I know I can just call pulldata() (and return NULL when no the feature is not found) directly without previous check, but as I need to call pulldata() many times after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using the '' inside the if/else statement, when changing the question value a double arrow symbol appears which is annoying (and if I press the double arrow symbol it undoes the question value).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 16:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/setting-a-question-to-null-in-a-if-else-statement/m-p/1575844#M60831</guid>
      <dc:creator>ChristianCordova</dc:creator>
      <dc:date>2025-01-15T16:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a question to NULL in a if/else statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/setting-a-question-to-null-in-a-if-else-statement/m-p/1575846#M60832</link>
      <description>&lt;P&gt;Common issue is pulldata does not like being inside of an if or any other function.&amp;nbsp; Move the pulldata to its own field then use that field in the if.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 16:02:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/setting-a-question-to-null-in-a-if-else-statement/m-p/1575846#M60832</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2025-01-15T16:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a question to NULL in a if/else statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/setting-a-question-to-null-in-a-if-else-statement/m-p/1577256#M60891</link>
      <description>&lt;P&gt;Thanks DougBrowning for the temp solution. Unfortunately, moving the pulldata() as a new question means creating many new questions just for pulldata. I am working with a large survey (land administration) and like 80 or more questions are using pulldata (from many other tables).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 17:51:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/setting-a-question-to-null-in-a-if-else-statement/m-p/1577256#M60891</guid>
      <dc:creator>ChristianCordova</dc:creator>
      <dc:date>2025-01-20T17:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a question to NULL in a if/else statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/setting-a-question-to-null-in-a-if-else-statement/m-p/1577424#M60907</link>
      <description>&lt;P&gt;Sorry but it has been like this for years so it is probably not going to change anytime soon.&amp;nbsp; Also 80 pulldata calls would probably make your form rather slow.&amp;nbsp; May want to consider a different workflow.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 15:16:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/setting-a-question-to-null-in-a-if-else-statement/m-p/1577424#M60907</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2025-01-21T15:16:31Z</dc:date>
    </item>
  </channel>
</rss>

