Hi all,
I have a map that has a point layer "Gas Leak" and then a set of polygons called "Map Sections". I have set up a field in the Gas Leak layer, called Map Section Number. I have then set this to be a calculated field within the smart form editor for Field Maps. When I press the test button in the web app, it returns the correct map section number that that point is in. But when I try this on Field Maps for IOS, it just tells me "Failed to Calculated" I have manually added the point in several locations around the map to see if it is just a glitch with a particular map or something, and that does not change anything. The expression I am using for this is:
var MapSections = FeatureSetByName($map,"Map Sections")
var MapSection = First(Intersects($feature,MapSections))
if(!IsEmpty(MapSection)){
Return MapSection.Map_Sectio;
} else {
return NULL
}