Hi,
I'm working in ArcGIS Online
I have a survey that pulls values from an AGOL hosted feature service to a select_one question.
In the web form it pulls in the values and they can be selected:
But in Survey123 Connect and Survey123 for Desktop the values are not retrieved:
Any ideas why this might be?
Thanks
Hanlie
Solved! Go to Solution.
BUG-000170893 When using a hosted feature layer from ArcGIS Online as the source for a drop-down question in the ArcGIS Survey123 web designer, the drop-down list is not populated in the ArcGIS Survey123 field app.
Should be fixed now.
External Selects need to be downloaded separately from the survey.
Exit the survey and return to the main S123 screen. Then, click on the survey and it should download the external select. You should see the list now.
@abureaux thanks for the reply.
Unfortunately your suggestion did not change the behaviour of the form.
I created a new survey using a different feature service as source for the list and that worked. So it looks like the service may be suspect. But that doesn't explain why it works in the web form but not in Survey123.
Also doesn't work in the mobile app.
Regards
Hanlie
Oh, search() appearance. Ya, that changes things 😂
Looks like your Desktop apps are up to date. And you mentioned that this was a "Hosted" layer. Both of those are good things.
Have you tried using other layers, and is the behaviour replicated on them? And have you tried changing security settings for the FL used? Almost seems like a security issue. But then you'd expect Connect to work at least.
EDIT: Defiantly seems like a layer issue. I swapped your FL with a public one, and updated the name choice/label to match new FL. No issues.
I can only assume your name/label combo is correct since the list does show up in the web app. If either the name or label, or both, were wrong, you would see a very specific behaviour (either a blank list, or a list of all "undefined" or "label"). That really just least the FL.
@abureaux, your solution seem to use csv files as source for select_one questions. Helpful. Thank you.
But this question is related to autocomplete search that uses a feature service as source as opposed to a csv.
Version of Survey123 Connect? Field app? Are you logged in with an account that has access to the feature service? Can you share the XLSForm?
Could just be as simple as updating connect, republishing the survey, updating the field app, downloading the latest survey.
Could also be other elements at play. Couldn't see any known limitations or issues around this.
Hi Christopher,
Thanks for the reply.
Survey123Connect V3.21.62
Survey123 V3.21.62
I am the owner of the feature service.
I have attached a version of the survey that I created in the web designer to see how it works there and I have the same issue - works in the web form but not in Connect or the Desktop app.
Thanks
Can you use a random string like "carrots" as the unique table name in the search() call?
or an ArcGIS layer (use the format‘<unique_name>?url=<Layer REST URL>’,including the layer index). The<unique_name>can be anything, it doesn't need to match the name of the hosted layer, but as this is how Survey123 internally refers to your search, must be different from all other table names and CSVs used in the survey:
e.g. autocomplete search("carrots?url=https://services.arcgis.com/k7HsiFEIdlPzZNnP/arcgis/rest/services/Water_Licence_eWULAAS/FeatureServe...")
This table name doesn't need to match the name of the hosted layer, but because this is how Survey123 internally refers to your search, it must be different from all other table names and CSV files used in the survey.
I wonder if it's because you've got some csv table in the media folder or even just the list name is the same?