In my XLSForm, I have this choice list that is generated from a search() function, which querys a table in the AGOL feature service. I set it up based on the doc and this blog post.
The list loads fine when working in Survey123 Connect and on the android app. However, that is not the case in the survey123 web app where I get a "Failed to load the choice list. Please contact the survey owner to fix it." error. There is an empty box with an arrow but clicking on it brings nothing (except the field name as a popup).
Survey123 Connect (peoples names so hidden):
Web app:
In my XLSForm, under the choices tab, I have:
list_name | name | label |
ins_pn | prenom_nom | prenom_nom |
and in my survey tab (the field name in question is binded to null because I then get the ID of the user (inspecteur_man_id) and that's what I want to store):
type | name | label | appearance | required | calculation | bind::esri:fieldType |
select_one ins_pn | prenom_nom | inspecteur | minimal search("prenom_nom?url=feature_service_url/FeatureServer/10/query?where=1=1&orderByFields=inspecteur_man_id asc") | yes | | null |
integer | inspecteur_man_id | inspecteur_man_id | hidden | | pulldata("@layer", "getValue", "attributes.inspecteur_man_id", "feature_service_url/FeatureServer/10", concat("prenom_nom ='", ${prenom_nom}, "'")) | esriFieldTypeInteger |
Am I doing something wrong? From what I understand, search() is supposed to work in the web app.
Thanks!