HI
I am using Experience Builder I am new to it but I would like to do the following: I have a list of suburbs and a list of flood events if I press the button Suburb and Probable Maximum Flood, then the pop-up message should appear with the name of the suburb and the description of the flood event. If I only press the flood event only should appear the description of the flood. (see picture below)
I did an arcade code in the flood layer
var intersectLayer = Intersects($feature, FeatureSetByName($map,"Suburb"))
for(var f in intersectLayer){
return f.SuburbName
}
But it does not work because only appear the same name of suburb for example "Suburb 2" all the time. I also do not want that display all the names of suburbs that intersect the flood. If I click a suburb and a flood event it only should appear this info in the pop-up. I would appreciate any help. Thanks
