Hello:
I have an arcade expression that intersects and returns all addresses within a parcel if you click on the parcel. Is there a way to make this dynamic so it will zoom to an address when I click on one of the addresses in the popup?
var addresspoints = Intersects(
$feature,
FeatureSetByName($map,"Addresses (GIS)", ["FullAddress"])
);
var cnt = Count(addresspoints);
var counter = (cnt-(cnt - 1))
var address_info = "";// validate if there are any related records and handle accordingly
if (cnt > 0) { // there is at least 1 related record, create asset info
address_info = cnt + " Address(es):"; // loop through related records
for (var address in addresspoints) { // create text using name and description (you should modify this to match your needs)
var address_text = (counter++) + ". " + address.FullAddress; // add the text for this asset to the asset info
address_info += TextFormatting.NewLine + address_text; }} else { // no related records (or the sql query did not work)
address_info = "No addresses found for this parcel";}
return address_info;

This is the site: https://lacounty.maps.arcgis.com/apps/webappviewer/index.html?id=4cf18bf143c049ef84a173672e089e48