Hey Community,
I've been trying to use Arcade to run some calculations in forms on ArcGIS Online.
I'm using the Contains function in a script to determine if the current feature is contained within the polygon of another layer - very similar to an example seen in Dev Summit where they run a script to determine which land parcel the tree is inside.
Issue is, this works fine in testing, works when making new points in Map Viewer, but when I make a new point in Field Maps I just get the red 'failed to calculate' message, and the form won't submit at all despite this not being a required question.
I know previously there have been issues with FeatureSet functions being used in Field Maps, but this seems to have been resolved because they were using FeatureSetById in Field Maps in the Dev Summit video I was referencing.
Does anyone know if there's maybe a document of functions that don't work in Field Maps? I've done a bit of digging but can't find anything comprehensive or recent.
Here is the link to the video I have mentioned: Using Arcade with ArcGIS Field Apps - YouTube
Timestamp: 35:18
EDIT: Here is my script in case anyone can help
var bushfire_risk = Contains(FeatureSetById($map, "Low Bushfire Risk Area"), $feature)
if (bushfire_risk == 'true') {
return "LBRA"
}
else {
return "HBRA"
}