Select to view content in your preferred language

Auto-incrementing field in ArcGIS Field Maps

2382
2
05-07-2021 10:24 AM
kjohnfs
New Contributor II

I work in soils and use Field Maps to collect point features with form data (photo of form attached) in different unit areas. We need to know how many points we have done, and counting or manually entering the point feature count/number is tedious out in the field. I've tried to do attribute rules but am not sure where to start there.

Is there a way to auto-increment and display the number point in that unit? For example, if this is the sixth point that a worker has taken in unit 45 is there a way for to autofill "6" in that form?  I saw some posts from 2016 that said Esri was "working on" this functionality.

0 Kudos
2 Replies
KevinMacLeodCAI
Occasional Contributor II

Having an auto-incrementing field (and more generally, having auto-calculating fields like Excel has with formulas, for example adding two columns together or concatenating two fields) would hugely useful, both in AGOL and on premise in SDE and file geodatabase. I imagine they could engineer the backend with python and SQL functions.  I think it is finally coming to the platform piece by piece... they have added it to Pro..  https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/contingent-values.htm

Now if spreads across the platform to AGOL, SDE and other apps it will be highly useful.    https://community.esri.com/t5/arcgis-online-ideas/support-for-contingent-values-in-arcgis-online/idi...

0 Kudos
DuncanHornby
MVP Notable Contributor

I have a point layer in field maps which has a numeric field called ID. In AGOL, when viewing the layer in map viewer I had open up its form and for the ID field created a calculate expression:

return count($layer) + 1;

 

This will set the ID to the number of features plus 1. That's how I auto populate the ID field with unique ID numbers.

0 Kudos