HOW TO
In ArcGIS Online, it is possible to replace all the values of a field with a default value. This method is useful when it is necessary to replace certain values of a field for accuracy and better data management.
In this article, fields with a single '0' in the Accidents field (as shown in the image below) are replaced with '1' using an Arcade expression.
if ($feature.<field_name> == '<initial_value>') { Replace($feature.<field_name>, '<initial_value>', '<new_value'>) } else { return($feature.field_name>) }
The image below displays the new field values in the Accidents field.
Article ID: 000030689
Get help from ArcGIS experts
Download the Esri Support App