Pass field attribute from Web Mapping Application to Survey123

279
3
Jump to solution
06-10-2020 04:53 AM
CMcDonald
Occasional Contributor

Perhaps I am not reading the support documentation correctly Integrate with other apps—Survey123 for ArcGIS | Documentation  but I would like to link from a Web Mapping Application to a Survey123 form and include the "SITE ID" of the Polygon the user has clicked on within the mapping application.  I can link to my form but not pass the attribute.

I have used a Custom Attribute Display and thought the format should be something like

arcgis-survey123://?itemID=36ff9e8c13e042a58cfce4ad87f55d19&field:SITE_ID={SITE_ID}

The field name SITE_ID is the same in the attribute table and the form.  The itemID above is just the example in the documentation.

Thanks

1 Solution

Accepted Solutions
CMcDonald
Occasional Contributor

SOLVED: Found this great post https://community.esri.com/groups/survey123/blog/2019/02/06/survey123-tricks-of-the-trade-web-form-u... 

Essentially I had to check the schema of the survey and discovered the field Name as oppose to using the Label and altered the URL which worked 🙂

View solution in original post

0 Kudos
3 Replies
DanteLee
Occasional Contributor

The URL structure is correct as far as I can tell. When you click (or hover) the link in the web map pop-up on your desktop, do the parameters populate correctly in the URL? It won't open S123, but you can at least check whether the attributes are being carried in the URL in the first place

0 Kudos
VeronicaCreed
Esri Contributor

The documentation describes a few different ways to pass parameters depending on how Survey123 is being accessed. Try using this URL scheme (replaced with your itemID) and see if that helps!

https://survey123.arcgis.com/share/36ff9e8c13e042a58cfce4ad87f55d19?field:SITE_ID={SITE_ID} 

0 Kudos
CMcDonald
Occasional Contributor

SOLVED: Found this great post https://community.esri.com/groups/survey123/blog/2019/02/06/survey123-tricks-of-the-trade-web-form-u... 

Essentially I had to check the schema of the survey and discovered the field Name as oppose to using the Label and altered the URL which worked 🙂

View solution in original post

0 Kudos