Hello,
I'm trying to create a simple attribute rule to prevent a user from creating a point outside a polygon layer. My code is below, when I hit validate it seems to check out but when I try creating points it returns the error even if the point is inside the polygon layer I'm referencing. Any feedback is much appreciated, thanks!
-------------------------------------------------------------------------------------------
// variable for 'AOR' layer
var aor = FeatureSetByName($datastore, "aor", ['*'], True);
// boolean "if statement" for determining if point intersects the 'aor' layer
if (Within($feature, aor) == True)
return True
else
return False