Looking at this How To post about popups, it looks like it's possible to use Arcade to create a popup that indicates if there's intersect between multiple feature layers on ArcGIS Online. Is it possible to create a new field in the attribute table of a hosted feature service that uses attribute expressions to do this? We would like to create a dashboard that tells us when there's overlap between features in multiple feature layers, and if it's possible, using Arcade to create a new field with an attribute expression to do this would be perfect.
Display attributes of intersecting features in a pop-up via ArcGIS Arcade
https://support.esri.com/en-us/knowledge-base/how-to-display-attributes-of-intersecting-features-in-a-000028227
Populate a feature layer field based on attributes of another using Arcade in ArcGIS Online
https://support.esri.com/en-us/knowledge-base/how-to-populate-a-feature-layer-field-based-on-attribut-000031934
Yes, if you own the layer or are an administrator in your org, you would be to create a new field in the table. From there you can do things like calculate that field using an Arcade expression, or set up arcade expressions in a form for use when editing.
Hi @EmilyGeo , unfortunately, I don't think using Calculate Field will work in this instance, since the goal would be to have a new field that updates live based multiple data sources, which we could then present in a Dashboard to flag areas of overlap. The users of the dashboard aren't all GIS users, and we would prefer not to have to run the Calculate Field each day, potentially multiple times a day. We essentially want to do what's described here https://support.esri.com/en-us/knowledge-base/how-to-display-attributes-of-intersecting-features-in-... but in a new field, not a pop up.
Hi @EmilyGeo, I tried out the Arcade statement in the article you linked, and while it works in a form that inputs the field information when you add new features, it does not update existing features. I think the Field Calculate would actually be necessary, since the users need to be able to see which of the features they create conflict with features in different layers. They want to see that information in a dashboard, as well, but an attribute field needs to be updated in the layer they're working with.
The problem is, Field Calculate doesn't seem to show other layers in the Arcade Profile, so the Arcade expression used in that article won't work.
Edit: it looks like another user had this issue, and was unable to find a solution. It may not be possible to do this in ArcGIS Online: https://community.esri.com/t5/arcgis-online-questions/calculating-fields-based-on-an-intersection/td...
In that case, you might be interested in creating a Data Driven element in a Dashboard
here are the links:
Thanks, @EmilyGeo , I'll take a look! This seems promising.