I want to populate an attribute based on another attribute value using arcgis arcade on a web map / field map.
Suppose I have 2 attributes: attribute1 and attribute2. Attribute1 will be updated if Attribute2 has certain value. Here is the code on attribute1:
if ($feature.attribute2 != "b")
{
return "yy";
}
else
{
return "xy";
The formula is correct. But why attribute1 is not updated automatically when attribute2 is updated / inserted (I update the atribute by changing the column value of atribute2) ?
Here is the screenshot:
