Hello @ScottStanton__GISP,
I have tested the arcade expression on my end and I was not able to reproduce the same behavior on my IOS 14 device.
If you temporarily change the link's text to the Arcade expression in the pop up, in Collector do you see the XY information or is it missing from the pop up in Collector?
One option you can try is encoding the XY information, something along the lines of:
function MetersToLatLon(x, y) {
// Converts XY point from Spherical Mercator EPSG:3857(Web Mercator Auxiliary Sphere) to lat/lon in WGS84 Datum (EPSG:4326).
// Source: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
var originShift = 2.0 * PI * 6378137.0 / 2.0;
var lon = (x / originShift) * 180.0;
var lat = (y / originShift) * 180.0;
lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0);
return [lat, lon];
}
function CreateURLSurvey(lat, lon) {
var url = "arcgis-survey123://?itemID=<surveyid>";
url += "&field:name1=" + $feature["name1"] + "&field:name2=" + $feature["name2"];
url += "&field:name_new=" + $feature["name_new"] + "&field:rel_globalID=";
url += $feature["GlobalID"] + "&callback=https://collector.arcgis.app" + "¢er=";
var loc = lat + "," + lon;
Console(url);
return url + UrlEncode(loc);
}
var latlon = MetersToLatLon(Geometry($feature).X, Geometry($feature).Y);
var url = CreateURLSurvey(latlon[0], latlon[1]);
return url;
Thank you,
Zach
Thank you,
Zach