I have been successful in creating a popup button in Field Maps which directs users to S123 to complete a survey and prepopulate some fields in S123.
I'm using the below link to do this:
arcgis-survey123://?itemID=itemID&field:matchglobalid={GlobalID}
I'm transferring the GlobalID of the hosted feature layer to S123 using the above link.
I'm hoping that there's now a way, using the GlobalID, that i can create a link/button in the popups which will navigate a user to the completed survey.
Solved! Go to Solution.
Thanks
I created a popup expression:
var flips = $feature.OBJECTID
var acs = FeatureSetByPortalItem(Portal('https://www.arcgis.com'), '<itemid>', 0)
var filterStatement = "matchobjectid = @flips"
var county = First(Filter(acs, filterStatement))
return county.objectid
Then added the expression to a link to the S123 data tab:
https://survey123.arcgis.com/surveys/<surveyid>/data?objectIds={expression/expr6}
you need to add mode
&mode=edit&globalId={GLBOALID}
Thanks
I created a popup expression:
var flips = $feature.OBJECTID
var acs = FeatureSetByPortalItem(Portal('https://www.arcgis.com'), '<itemid>', 0)
var filterStatement = "matchobjectid = @flips"
var county = First(Filter(acs, filterStatement))
return county.objectid
Then added the expression to a link to the S123 data tab:
https://survey123.arcgis.com/surveys/<surveyid>/data?objectIds={expression/expr6}