I am trying to write an arcade script on my pop-up for parcel. I have three polygon layers that represent 'Water Service Area", "Sewer Service Area", and "Reclaimed Service Area". I want to write the Arcade script so that when I select on a specific parcel it will return saying that the Parcel is on Water, or Sewer, or Reclaimed. I thought I had figured the code out but when I click around on the map, every pop-up says the same thing. It is not specific to that parcel. Here is the code I wrote:
expression 1
var water= FeatureSetByName($map, "Water Service Area")
var Intersects = Intersects($feature, water)
return 'Water'
expression 2
var sewer= FeatureSetByName($map, "Sewer Service Area")
var Intersects = First(Intersects($feature, sewer))
return 'Sewer'
expression 3
var reclaim= FeatureSetByName($map, "Reclaimed Water Service Area")
var Intersects = Intersects($feature, reclaim)
return 'Reclaimed Water'
So for the pop-up I had
Parcel: {PARCEL}
This parcel is on City:
{expression/expr0}
{expression/expr1}
{expression/expr2}
I was reading old posts that maybe what I am trying to do is not possible. If someone has any advice or a work around that would be great.