Select to view content in your preferred language

Make Form Fields Editable And Calculated Based On Condition

250
1
04-04-2025 10:54 AM
Status: Open
Labels (3)
LeviCecil
Frequent Contributor

I want field users to be able to visit a site and have the site name calculated in a form from the geofence they are inside. I have this working in Arcade. I also want users to be able to fill out these forms on the web when they are NOT inside a site geofence, and to be able to choose the site name from the dropdown. I know I can accomplish this in Survey 123, but I want to keep everything in Field Maps forms for this application 

arcade.PNG

Here is my expression.

 

var geofence = FeatureSetByName($map, "Security_Geofences",['Site'])

var site = First(Intersects($feature, geofence))

if (!IsEmpty(site)) {
    return site['Site']
} else {
    return null
}

 

 

1 Comment
ChristopherCounsell

This is possible if you:

  • Set the calculation 
  • Set conditional editing

If the condition allows editing the user will be able to overwrite the calculated value.

https://community.esri.com/t5/arcgis-field-maps-blog/how-to-override-values-for-fields-with-calculat...