Arcade expressions

ArcGIS Arcade can be used to calculate fields in records captured with QuickCapture. A project author can write an expression that uses Arcade functions, operators, input values from other fields in the target layer, or values from other layers in the QuickCapture project web map. The following are example use cases that can be constructed as an Arcade expression:

  • Calculate a value from values coming from another field
  • Do a point in polygon query to return an attribute value
  • Use a function to calculate the time duration of a captured polyline

The QuickCapture designer includes an expression builder to help authors write expressions and uses the QuickCapture profile. Similar to how user inputs are defined once and usable in more than one button, once an Arcade expression is saved in the designer, it can be assigned to more than one button.

Arcade expressions can be configured by the project author on the Data tab for each field. To assign an Arcade expression to a capture field of a button, on the Data tab, from the drop-down menu of the capture field, choose Arcade expression and select Create new.

Choose an Arcade expression or create new

Fields that are managed by ArcGIS—such as OBJECTID, GlobalID, CreationDate, Creator, EditDate, and Editor—should not be used in an expression because their values are not known until after a record is submitted. If an expression requires a value for a username or record capture date, the expression should reference a field that has been populated with a device variable.

Note:

Records captured when the device is offline that contain Arcade expressions will only be processed when the device is next online, and only then will they be sent.