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_16 | park | Park: | autocomplete search("list_untitled_question_16?url=https://services.arcgis.com/-------/arcgis/rest/services/Parks_Boundary/FeatureServer/0") | yes | 255 | ||||||||||||||||||||||||||||||||||
geoshape | park_geometry | Park:_geometry | hidden | pulldata("@layer","getValue", "geometry", "https://services.arcgis.com/---/arcgis/rest/services/Parks_Boundary/FeatureServer/0", concat("NAME = ", "'", ${park}, "'")) | mapTools=mapSwitcher |
Solved! Go to Solution.
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).
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.
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.
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).
@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.
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.