Hello Community,
I need some help with this code since I am new to coding.
I have created a custom pop-up that allows me to gather information through intersecting.
Now I wanted to get to the next level-creating links with intersecting. I created two separate arcade expressions;
One for the intersection:
var intersectLayer =Intersects(FeaturesetbyName($map, "landrecords - Parcel Map"), $feature)
var results = ""
var baseweb ="http://pw.lacounty.gov/sur/nas/landrecords/parcel/PM"
for (var f in intersectLayer){
if (results ==""){
results = f.Reference;
} else{
results += ", " + f.Reference;
}
}
return results
One for the hyperlink:
for (var f in intersectLayer){
return baseweb + MID(f.REFERENCE,2,3) + "/" + f.REFERENCE + ".pdf"
}
Results:
The result is circled in blue, however the links both send you to the same document.

Any help would be appreciated.
Thank you.
-Matthew