Return completed S123 survey as popup in field maps

278
2
Jump to solution
10-24-2022 08:13 AM
RiainGarcia
New Contributor III

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.

0 Kudos
1 Solution

Accepted Solutions
RiainGarcia
New Contributor III

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}

View solution in original post

0 Kudos
2 Replies
AaronNash__GISP
New Contributor III

you need to add mode

&mode=edit&globalId={GLBOALID}

0 Kudos
RiainGarcia
New Contributor III

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}

0 Kudos