Select to view content in your preferred language

Autopopulate field based on user's selection

913
4
03-11-2023 08:54 AM
TylerW
by
Emerging Contributor

Hello. First time poster here!

I am working with Survey 123 (Connect) and are looking to autopopulate answers based on the users section within a AGOL Webmap.

The idea is allow the user to select points on a map and the Form automatically populates answers based on the selected feature. Example, A street sign needs repaired and has a uniqueID. The user selects the sign via map and the Form displays with the UID already populated in. There are other field available for the user to enter in Notes/Descriptions of what the problem is with the Sign.

Thanks for the help!

TW

0 Kudos
4 Replies
David_Tipping
Occasional Contributor

TW Hi - I think what you are trying to do is covered in the following post from Ismael: https://community.esri.com/t5/arcgis-survey123-blog/understanding-survey123-s-custom-url-scheme/ba-p... 

David

0 Kudos
TylerW
by
Emerging Contributor

I seem to be on the right track.

The URL is pulling the correct FieldID from my selection and opening up the Survey123 form.

Screenshot 2023-03-12 101829.jpg

However, I'm not seeing the FieldID  attribute populate in the Survey.

Screenshot 2023-03-12 101857.jpg

This post is on MapViewerClassic and I am on the "newer" MapViewer. Not sure if that matters.

0 Kudos
David_Tipping
Occasional Contributor

From the instruction is linked: The value to insert immediately after field: is the value of the corresponding NAME question in your XLSForm. Do  not pass the Label!

So is "field_4" the actual name of the field you are trying to populate and is "ZoneID" the field Label? 

Are you building this in Survey123 Connect or the web tool?

The map viewer choice is not related to this

 

 

0 Kudos
TylerW
by
Emerging Contributor

Yes I noticed the NAME/LABEL in the documentation. I tried both in the webtool and connect with no luck

Screenshot 2023-03-13 080621.jpg

Appreciated,

TW

0 Kudos