Select to view content in your preferred language

Passing parameter via URL to Survey 123 working in Map Viewer, but not all parameters getting passed using Field Maps

497
12
Jump to solution
4 weeks ago
MHCorvus
Occasional Contributor

New to Survey 123 here

I have a common workflow of creating a point using Field Maps and then having a URL in the pop up to connect to a survey 123 survey which fills in the related table. I want 6 parameters passed to the survey to be filled in upon opening

Everything works great using the browser and map viewer, but when I use Field Maps on my device, one of the parameters does not get passed, but the other 5 do.

Here is the link to open the survey 123 survey which also makes the pretty green button 🙂

<a target="_blank" rel="noopener noreferrer" href="https://survey123.arcgis.app?itemID=8474e70272ed47259b15a13793ac1e05&amp;field:ParentGlobal={GlobalI...}"><img src="https://dabuttonfactory.com/button.png?t=Open+Survey+123&amp;f=Roboto-Bold&amp;ts=24&amp;tc=fff&amp;..." alt="Open Survey 123"></a>
</p>

ParentGlobal, Wayp;oint, Parcel, Latitude, and Longitude all get filled in fine, but the Detectiontype field only gets filled in when I use the Map Viewer, not for Field Maps to the mobile Survey 123 app.

Here are the steps I've tried so far.

1. Making sure both Field Maps and Survey 123 are updated to the latest versions on the mobile device

2. Clearing the cache on both mobile apps, reloading the map in Field Maps, updating the survey in survey 123

3. Taking out the extra code in the URL to make it a simple link

4. Checking the field names to make sure they match.

Again, link works fine on my computer working from Map Viewer, all 6 fields are populated fine, but on the mobile device using Field Maps, Detectiontype does not get filled in. This was a field I added after the other ones, which is why I thought maybe it was a cache issue, but so far that hasn't helped. 

I am attaching the xlsform for the survey. 

 

0 Kudos
12 Replies
MHCorvus
Occasional Contributor

Now that I know what to search for in the community, it looks like this was addressed on this post

https://community.esri.com/t5/arcgis-field-maps-questions/url-passing-labels-not-coded-values-to-sur...

0 Kudos
MHCorvus
Occasional Contributor

I guess one frustrating part is that my labels and codes are identical in survey 123 and the domain for the feature as far as I can tell which is something mentioned in that link

Screenshot 2024-09-24 111451.pngScreenshot 2024-09-24 111441.png

0 Kudos
MHCorvus
Occasional Contributor

But that did the trick.

I just had to add an attribute expression to pull the DomainCode for that PTType field and use it in the URL instead of the field itself.

I will repeat the link to the post I ended up using. I had to do it even though the labels and codes were the same in both my feature class and survey 123 field, so it seems that fieldmaps is just using the labels

https://community.esri.com/t5/arcgis-field-maps-questions/url-passing-labels-not-coded-values-to-sur...

0 Kudos