<?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 arcade calculation - once() or only when null in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-calculation-once-or-only-when-null/m-p/1215767#M4584</link>
    <description>&lt;P&gt;I've been using Arcade calcuation expressions with good success in Field Maps. However, I'd like to know if it's possible to trigger the calculation only when the associated field is null. This would be similar to the once() operator, of the Survey123 whenEmpty calculation mode. Basically I want to make sure the calculation (the inspection date) doesn't get overwritten if the Smartform is opened at a later time after initial collection.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 22:05:07 GMT</pubDate>
    <dc:creator>PaulPetersen1</dc:creator>
    <dc:date>2022-09-23T22:05:07Z</dc:date>
    <item>
      <title>arcade calculation - once() or only when null</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-calculation-once-or-only-when-null/m-p/1215767#M4584</link>
      <description>&lt;P&gt;I've been using Arcade calcuation expressions with good success in Field Maps. However, I'd like to know if it's possible to trigger the calculation only when the associated field is null. This would be similar to the once() operator, of the Survey123 whenEmpty calculation mode. Basically I want to make sure the calculation (the inspection date) doesn't get overwritten if the Smartform is opened at a later time after initial collection.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 22:05:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-calculation-once-or-only-when-null/m-p/1215767#M4584</guid>
      <dc:creator>PaulPetersen1</dc:creator>
      <dc:date>2022-09-23T22:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: arcade calculation - once() or only when null</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-calculation-once-or-only-when-null/m-p/1215770#M4585</link>
      <description>&lt;P&gt;The &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#isempty" target="_self"&gt;IsEmpty&lt;/A&gt; function returns "true" if the value is null or empty ('').&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;If (!IsEmpty($feature.InspectionDate)){
  //save a new Inspection Date
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 23 Sep 2022 22:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-calculation-once-or-only-when-null/m-p/1215770#M4585</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-09-23T22:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: arcade calculation - once() or only when null</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-calculation-once-or-only-when-null/m-p/1215786#M4587</link>
      <description>&lt;P&gt;Thanks, that helps.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 23:06:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-calculation-once-or-only-when-null/m-p/1215786#M4587</guid>
      <dc:creator>PaulPetersen1</dc:creator>
      <dc:date>2022-09-23T23:06:31Z</dc:date>
    </item>
  </channel>
</rss>

