HOW TO

Automatically populate sequential numbering for newly created features in ArcGIS Field Maps using Arcade

Last Published: April 9, 2024

Summary

Creating sequential numberings for newly created features in ArcGIS Field Maps is a practical and effective way to manage and organize data during the data collection process, as it ensures data integrity, organization, and ease of analysis. This article describes the steps to create sequential numbering for newly created features in Field Maps using an Arcade expression.

Procedure

  1. Open the project in the ArcGIS Field Maps Designer web app.
  2. In the form, click the relative field. The Properties pane opens.
The selected field in the form
  1. In the Properties pane, under the Logic section, click Expressions The Expressions button next to Calculated expression.
  2. In the Calculated expressions pop-up, click + New expression. The Arcade editor window opens.
The Calculated expressions pop-up
  1. In the Title text box, add a title for the expression.
  2. Copy the following expression into the Arcade editor window.
var numberlist = FeatureSetByName($map,"<layer_name>")
var topnum = Top(OrderBy(numberlist,'<field_name> DESC'),1)
var counter = Number(Max(topnum,'<field_name>'))
var id = counter+1

return id
  1. Replace <layer_name> with the name of the layer containing the field. In this example, the TX_Tornadoes layer is used.
  2. Replace <field_name> with the name of the field containing the field values. In this example, ORIG_FID is used.
  1. Click Run.
  2. Click Done to close the Arcade editor window.
The Arcade editor window with the Title text box, the Run and the Done buttons

The image below shows the sequential number for the field automatically updated in the form when a new point is added to the map.

The sequential numbering generated in the form

Article ID: 000031315

Software:
  • ArcGIS Field Maps Android
  • ArcGIS Field Maps iOS

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options