<?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 Expressions not populating right away when form loads in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expressions-not-populating-right-away/m-p/1168314#M3181</link>
    <description>&lt;P&gt;I solved my problem, Field Maps did not like the if statement in calculated expression for my date field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 13:38:52 GMT</pubDate>
    <dc:creator>Larry</dc:creator>
    <dc:date>2022-04-27T13:38:52Z</dc:date>
    <item>
      <title>Calculated Expressions not populating right away when form loads</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expressions-not-populating-right-away/m-p/1168309#M3180</link>
      <description>&lt;P&gt;My Field Maps app has about 15 fields in the smart form. I am trying use Calculated Expressions to populate my easting, northing and date fields with:&lt;/P&gt;&lt;P&gt;var sGeo = Centroid($feature)&lt;BR /&gt;return sGeo.x&lt;/P&gt;&lt;P&gt;var sGeo = Centroid($feature)&lt;BR /&gt;return sGeo.y&lt;/P&gt;&lt;P&gt;// Todays_Date&lt;BR /&gt;if (IsEmpty($feature["Date"])) {&lt;BR /&gt;return Now()&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;return&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code seems to work fine but when the form loads is does not always populate right away or not at all.&lt;/P&gt;&lt;P&gt;Some times I have to fill in some of the other fields before they populate. It seems to be hit and miss which other fields I have to fill in that triggers the calculated expressions to work, if at all. Also the fields that I am expecting to autopopulate seem to have 2 dashes "--" that pulse until they fill in.&lt;/P&gt;&lt;P&gt;It does not seem to matter if I have any conditional visibility turned on.&lt;/P&gt;&lt;P&gt;I am using Android 22.1.2, 22.1.1 and IOS 22.1.0&lt;/P&gt;&lt;P&gt;Is there some trigger that I am missing or is there something else I am doing wrong?&lt;/P&gt;&lt;P&gt;Thanks, Larry&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 13:09:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expressions-not-populating-right-away/m-p/1168309#M3180</guid>
      <dc:creator>Larry</dc:creator>
      <dc:date>2022-04-27T13:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Expressions not populating right away when form loads</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expressions-not-populating-right-away/m-p/1168314#M3181</link>
      <description>&lt;P&gt;I solved my problem, Field Maps did not like the if statement in calculated expression for my date field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 13:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expressions-not-populating-right-away/m-p/1168314#M3181</guid>
      <dc:creator>Larry</dc:creator>
      <dc:date>2022-04-27T13:38:52Z</dc:date>
    </item>
  </channel>
</rss>

