I currently have a webmap that consists of two layers. One is a polygon layers which represents parcels, and the other is a points layer that represents issued permits. I would like for the AGOL popup to show a list of the permits issued for each parcel, but am unsure of the arcade statement. As of right now, I have this expression, but it fails to return results:
var intersectLayer =Intersects(FeatureSetByName($map,"Permits Issued"), $feature)
for (var f in intersectLayer){
return f.NAME
}
The permits layer is called "Permits Issued" in the web map. The field I would like to display in the popup is called "PermitType". Can anyone advise me on what I may be doing wrong? Thanks in advance.