Hi @mikaël and @SWT_TL. I've encountered the same issue though I fixed it by encoding the characters within the URL. For reference, my Survey123 Connect question uses the additional parameters of units, distance, and where using a LIKE sql statement. Below is an example of how it looked within the search statement when it was not working on the Surevy123 web app:
autocomplete search("list_sites?url=someRestUrl&units=esriSRUnit_Meter&distance=0&where=siteCode LIKE 'TEST2025%'", "intersects", "@geoshape", ${activityPolygon})
While the above statement worked as expected on Survey123 Connect and within the Survey123 Mobile App, it would crash and display 'Unable to load choice list. Please contact the survey owner to fix it.' when accessed from the browser. To fix this url, I had to encode special characters such as the whitespaces, the % sign, and the single quotation marks so that they are read appropriately. This resulted in the search statement appearing as so:
autocomplete search("list_sites?url=someRestUrl&units=esriSRUnit_Meter&distance=0&where=siteCode%20LIKE%20%27TEST2025%25%27", "intersects", "@geoshape", ${activityPolygon})
This version of the URL appears to work for me in both the mobile app and the web app. Here, the whitespaces have been replaced by %20, the single quotation marks have been replaced by %27, and the % sign has been replaced by %25. I think this webpage is a good reference for url encoding parameters (https://www.w3schools.com/tags/ref_urlencode.ASP).
@mikaël for your purpose, try copying the URL as it is displayed on ArcGIS Online (see circled in blue in below image). Then use this reference for configuring the URL parameters to add to the end of it (https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer/#exampl...).
Hope this helps!
