<?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: How to auto update field with calculated length geometry in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1624692#M65117</link>
    <description>&lt;P&gt;To add to&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/585739"&gt;@EmilyGeo&lt;/a&gt;, the form builder is for Field Maps where you can set a calculation for a specified field.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jun 2025 14:55:47 GMT</pubDate>
    <dc:creator>RPGIS</dc:creator>
    <dc:date>2025-06-18T14:55:47Z</dc:date>
    <item>
      <title>How to auto update field with calculated length geometry</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1624452#M65108</link>
      <description>&lt;P&gt;Have an existing feature service hosted in ArcGIS Online and used in a FieldMaps app. Field staff are collecting new data all the time.&lt;/P&gt;&lt;P&gt;I created a field to hold the calculated length of the lines (Can't use shape length). I have been manually running calculate geometry on this feature service via ArcGIS Pro.&lt;/P&gt;&lt;P&gt;Looking how to automate this process so that every time a new line is capture and record is created in feature service that my length field is updated.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 19:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1624452#M65108</guid>
      <dc:creator>TD1</dc:creator>
      <dc:date>2025-06-17T19:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto update field with calculated length geometry</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1624465#M65110</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/314671"&gt;@TD1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you are looking to immediately capture the line length every time a feature is added but not override the existing value then you could use something like this as part of the calculation for that particular field. Without any additional context this should provide you the simplest means of updating that particular field.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var LineMeasure = $feature.&amp;lt;fieldname&amp;gt;
iif( IsEmpty( LineMeasure )  , Round( $feature.&amp;lt;shapefield&amp;gt; ), LineMeasure )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 20:04:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1624465#M65110</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-06-17T20:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto update field with calculated length geometry</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1624476#M65111</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;&amp;nbsp;is this the&amp;nbsp;&lt;SPAN&gt;Geodesic line measurement?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but where does this script go? I can run a manual calculate field but how do I automatically do this as new data is captured?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I just add it in the expression on a popup the data isn't touched and if I run it in AGOL on the data using calculate from the table it just runs on the records that exist at that point in time.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 20:41:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1624476#M65111</guid>
      <dc:creator>TD1</dc:creator>
      <dc:date>2025-06-17T20:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto update field with calculated length geometry</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1624513#M65114</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/314671"&gt;@TD1&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create a form for the layer in Map Viewer. In the form builder, you can write (or paste) the calculated expression that will be used to calculate the value for that field. That way the field will be calculated when features are created (or updated) in Map Viewer, Field maps, Web Editor, or other online apps that support editing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you're not familiar with using arcade expressions in forms,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/smart-forms-arent-just-for-field-maps-anymore#advanced-tips-and-tricks" target="_self" rel="nofollow noopener noreferrer"&gt;this article&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;is a good place to start.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 16:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1624513#M65114</guid>
      <dc:creator>EmilyGeo</dc:creator>
      <dc:date>2025-06-18T16:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto update field with calculated length geometry</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1624692#M65117</link>
      <description>&lt;P&gt;To add to&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/585739"&gt;@EmilyGeo&lt;/a&gt;, the form builder is for Field Maps where you can set a calculation for a specified field.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 14:55:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1624692#M65117</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-06-18T14:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto update field with calculated length geometry</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1625061#M65133</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/585739"&gt;@EmilyGeo&lt;/a&gt;&amp;nbsp; I have tried this in form builder but the length field is not calculating at all&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 14:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1625061#M65133</guid>
      <dc:creator>TD1</dc:creator>
      <dc:date>2025-06-19T14:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto update field with calculated length geometry</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1625224#M65143</link>
      <description>&lt;P&gt;What code specifically are you using? If you could please post a copy of the code then i it'll let us know where things aren't working. For the shape field are tou using the shape length field when calculating.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 01:14:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1625224#M65143</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-06-20T01:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto update field with calculated length geometry</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1625426#M65150</link>
      <description>&lt;P&gt;Figured it out and now it's working. Thanks&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/585739"&gt;@EmilyGeo&lt;/a&gt;&amp;nbsp; for your help!&lt;/P&gt;&lt;P&gt;For future reference for others the solution was using (note "$feature" is not a placeholder but the actual variable):&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;var test = LengthGeodetic($feature, 'meters')&lt;/P&gt;&lt;P&gt;return test​&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 18:34:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1625426#M65150</guid>
      <dc:creator>TD1</dc:creator>
      <dc:date>2025-06-20T18:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto update field with calculated length geometry</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1625433#M65151</link>
      <description>&lt;P&gt;You could also simply use the Length($feature, 'meters ) to get the same result.&lt;/P&gt;&lt;P&gt;All functions regarding the Geometry functions use the either $feature or $featureset as arguments not placeholders.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 18:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1625433#M65151</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-06-20T18:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto update field with calculated length geometry</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1625447#M65154</link>
      <description>&lt;P&gt;I needed to use the Geodesic length due to our policies&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 19:13:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-auto-update-field-with-calculated-length/m-p/1625447#M65154</guid>
      <dc:creator>TD1</dc:creator>
      <dc:date>2025-06-20T19:13:40Z</dc:date>
    </item>
  </channel>
</rss>

