Hi there,
I am trying to use the calculate expression using the configure form on ArcGIS online map viewer. I want to overlay a polygon on top of a layer and based on that intersection, the "CW_Status" field of the layer will switch to "Active". I also want the "CW_Status" to revert back to "Inactive" once the intersecting polygon has been removed. Here is the code I created that does not work.
// Overlay polygon
var overlay = FeatureSetByName($map, "DWA_Area")
// intersecting boolean
var intersect = Intersects($feature, overlay)
if(intersect == true){
return ($feature.CW_Status = "Active");
} else {
return $feature.CW_Status;
}Thanks!