Cannot pass value to popup through Arcade

Discussion created by Adam.Abeles@pseg.com_PSEG_NJ on Jul 8, 2020
Latest reply on Jul 9, 2020 by xander_bakker

Hey everyone,


I am trying to create an attribute expression to auto-populate a field in collector based on another features location to the point placed. I have a dataset of OH Electric Circuits and a feature called exceptions which will be placed by a field user. I want the circuit data to populate the newly created exception form in collector based on a buffer of 75 feet. I believe this is achievable through an Arcade expression in AGOL on the web map side. Below is what I have so far.


var circuits = FeatureSetByName($map,"Primary OH Conductor", ['BASE_CIRCUITID'])
var buff = Intersects(circuits, Buffer($feature, 75, 'feet'))
var baseCircuit = "BASE_CIRCUIT = '" + circuits + "'"
if(buff != null){
return Filter(buff, baseCircuit);


With this I get a featureSet returned but with nothing in it. Before I placed the filter function on 'buff' I could see the feature set returned had the values I was expecting. However, whenever I configured my custom popup to show those values, no data would show in the popup. Not even other values based on fields in the feature layer. Any help would be appreciated, this may not even be the route to go for the solution I need so if you have any ideas on populating collector forms with existing data I'm all ears.