HOW TO

Add auto-sequential values using Arcade in Map Viewer

First Published: January 8, 2024
Last Published: February 19, 2026

Summary

In Map Viewer, auto-sequential values can be added to facilitate efficient data interpretation and improved spatial distribution identification.

This article provides the workflow for newly created features to include sequential values in a field using an Arcade expression.

Procedure

  1. Open the web map in Map Viewer.
  2. In the Layers pane, select the layer. In this example, the polygon layer named Test is used.
  3. On the Settings (light) toolbar, click Configure editing > Forms.
  4. In the Configure form window, under the Form builder pane, under Fields, double-click the field to configure it.
  5. Click the selected field to open the Properties pane.
  6. In the Properties pane, under Logic, for Calculated expression, click Expressions Expression button icon.png.
  7. In the Calculated expressions window, click + New expression.
  8. In the Arcade editor window, configure the expression below.
var <variable1> = Max($layer, '<field_name1>')
var <variable2> = Number(<variable1>)
return <variable2> + 1
  1. Replace <variable1> and <variable2> with the desired variable names. In this example, TempID and MaxID are used.
  2. Replace <field_name1> with the name of the field containing the field values. In this example, SUPPORTID is used.
  1. Click Done.
The auto-sequential values using Arcade.
  1. Click OK to save the form.

The 'Create features' pane below shows the SUPPORTID field is populated with sequential values when a new feature is created on the web map.

The SUPPORTID field populated with sequential values when a new feature is created on the web map

Article ID: 000031714

Software:
  • ArcGIS Online
  • Portal for ArcGIS
  • ArcGIS Enterprise

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options