HOW TO
In ArcGIS Online, values from a field with an assigned domain can be automatically copied to another field in the same hosted feature layer using an Arcade expression. The expression retrieves the corresponding domain labels and writes it to the target field, ensuring the target field updates automatically when the source field is edited. This approach preserves the original field and form configuration, preventing disruptions to existing data collection workflows.
This article provides the workflow to copy field values with domain labels from the field below to another field using an Arcade expression in ArcGIS Online.

Note: The new field must be a string data type to preserve the domain label values when copying attribute values from the original field.


if (IsEmpty($feature.fieldName)) {
return null;
}
return DomainName($feature, "fieldName");


Note: Enable the Keep track of changes to the data (add, update, delete features) and Enable sync (required for offline use and collaboration) options on the Settings tab to record updates and support synchronization for offline workflows.
The Table view below displays the values in the new field, corresponding to the values in the original field.

Article ID: 000040331
Get help from ArcGIS experts
Start chatting now