I’m running into an issue when trying to open a Survey123 record from a Field Maps Task Layout. Hoping someone can help me figure out what’s going on.
What I’m trying to do:
I have a Survey123 form (item ID fe89e89f9ad0409b881b5406acb603ad) and a feature layer that includes a GlobalID field. In the new Field Maps Task Layout, I want to add a link that opens the Survey123 field app (not the web browser) and goes directly to the related record in edit mode.
Previously, in a standard popup, this web link worked perfectly:
https://survey123.arcgis.com/share/fe89e89f9ad0409b881b5406acb603ad?mode=edit&globalId={GlobalID}
Now, inside the Task Layout, I’ve tried multiple Arcade expressions, but all of them return an error saying “Survey link is invalid or requires an app that isn’t installed.” I've logged out, reloaded the map, and force closed the app between tries.
Here are the different versions I’ve tried so far:
var baseURL = "https://survey123.arcgis.com/share/fe89e89f9ad0409b881b5406acb603ad?mode=edit&globalId=
"
var gID = StandardizeGuid($feature.GlobalID, 'digits-hyphen')
return baseURL + gID
var baseURL = "https://survey123.arcgis.app?itemID=fe89e89f9ad0409b881b5406acb603ad&action=edit&globalId=
"
var gID = StandardizeGuid($feature.GlobalID, 'digits-hyphen')
return baseURL + gID
var baseURL = "arcgis-survey123://?itemID=fe89e89f9ad0409b881b5406acb603ad&action=edit&globalId="
var gID = Text($feature.GlobalID)
return baseURL + gID
I'm wondering what URL scheme the new Task Layouts use. It would be great if Esri had some examples on this.