Select to view content in your preferred language

Survey123 Pulldata name park location from existing feature layer polygon

365
5
Jump to solution
a month ago
AlexP_
by
Frequent Contributor

Hello,

I am using survey123 connect from AGOL. Please see file attached csv. I am trying to set up pulldata automatically location without select from polygon existing feature layer for park. But it is not what I'm expecting. I don't want users to use select one list autocomplete search the list of park location. I have been to look and noticed a lot has been updated survey123 over the year. Furthermore, I am not sure what I am missing. Please kindly assistance. Thank you for your support and time.

select_one list_untitled_question_16parkPark:  autocomplete search("list_untitled_question_16?url=https://services.arcgis.com/-------/arcgis/rest/services/Parks_Boundary/FeatureServer/0")yes             255                   
geoshapepark_geometryPark:_geometry  hidden    pulldata("@layer","getValue", "geometry", "https://services.arcgis.com/---/arcgis/rest/services/Parks_Boundary/FeatureServer/0", concat("NAME = ", "'", ${park}, "'"))     mapTools=mapSwitcher                 

 

0 Kudos
1 Solution

Accepted Solutions
DavidSolari
MVP Regular Contributor

Ah, that makes sense. Add a hidden geopoint to your form to capture the user's location, then use the getRecordAt or getValueAt modes of pulldata to select the park that way (the docs have more details).

View solution in original post

5 Replies
DavidSolari
MVP Regular Contributor

At first glance your form looks configured correctly: the user picks a park from the list of possible parks and the pulldata call grabs the exact geometry of that park. Are you trying to do something else? It's not clear what the issue is from how you've written your question.

0 Kudos
AlexP_
by
Frequent Contributor

Hello @DavidSolari Thank you for your reply. I am asking instead of the user picks a park from the list, I would like to have a park populate automatically at their location without selecting the list every time collect a new survey. Hope this clears up. 

0 Kudos
DavidSolari
MVP Regular Contributor

Ah, that makes sense. Add a hidden geopoint to your form to capture the user's location, then use the getRecordAt or getValueAt modes of pulldata to select the park that way (the docs have more details).

AlexP_
by
Frequent Contributor

@DavidSolari  Thank you for the details. I don't think it's working. I attached another form2 and the screenshot. survey app keep loading nonstop when it was submit. 

AlexP__0-1742417852637.png

 

0 Kudos
DavidSolari
MVP Regular Contributor

The hidden geopoint should be a distinct question, then a separate question has the pulldata call to extract whatever info you need. Note that if you're trying to get the polygon data from the parks to use as your form's spatial data, you'll also have to bind the hidden geopoint to the "null" esri type, otherwise you'll get errors due to the multiple spatial questions.

0 Kudos