<?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: Calculated expression runs when updating existing field in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-runs-when-updating-existing/m-p/1328651#M6999</link>
    <description>&lt;P&gt;Hello, this &lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/arcade-calculation-once-or-only-when-null/td-p/1215767" target="_self"&gt;post&lt;/A&gt; may be helpftul. See the IsEmpty function &lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#isempty" target="_self"&gt;here&lt;/A&gt; also. Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 12:58:01 GMT</pubDate>
    <dc:creator>RodellZorilla</dc:creator>
    <dc:date>2023-09-14T12:58:01Z</dc:date>
    <item>
      <title>Calculated expression runs when updating existing field</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-runs-when-updating-existing/m-p/1328606#M6998</link>
      <description>&lt;P&gt;I have a calculated expression that add the current date/time to a field when a record is captured in Field Maps.&amp;nbsp; However, if I update any existing record via Field Maps the calculated expression runs again, which means the original date/time the record was captured is lost.&lt;/P&gt;&lt;P&gt;I expected that the calculated expression would only run when creating new records, not when updating existing records.&lt;/P&gt;&lt;P&gt;Does anyone know if there is a workaround to this?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 09:23:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-runs-when-updating-existing/m-p/1328606#M6998</guid>
      <dc:creator>MappyIan</dc:creator>
      <dc:date>2023-09-14T09:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated expression runs when updating existing field</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-runs-when-updating-existing/m-p/1328651#M6999</link>
      <description>&lt;P&gt;Hello, this &lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/arcade-calculation-once-or-only-when-null/td-p/1215767" target="_self"&gt;post&lt;/A&gt; may be helpftul. See the IsEmpty function &lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#isempty" target="_self"&gt;here&lt;/A&gt; also. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 12:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-runs-when-updating-existing/m-p/1328651#M6999</guid>
      <dc:creator>RodellZorilla</dc:creator>
      <dc:date>2023-09-14T12:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated expression runs when updating existing field</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-runs-when-updating-existing/m-p/1328665#M7000</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/298197"&gt;@RodellZorilla&lt;/a&gt;, I found another similar post after asking the question:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/is-there-an-expression-to-differentiate-select-vs/m-p/1325490" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/is-there-an-expression-to-differentiate-select-vs/m-p/1325490&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The solution in the above post uses the &lt;STRONG&gt;IsEmpty&lt;/STRONG&gt; function in conjunction with &lt;STRONG&gt;$editcontext.editType&lt;/STRONG&gt; to check if the record is being updated or inserted.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 11:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-runs-when-updating-existing/m-p/1328665#M7000</guid>
      <dc:creator>MappyIan</dc:creator>
      <dc:date>2023-09-15T11:10:29Z</dc:date>
    </item>
  </channel>
</rss>

