I'm trying to populate a select_multiple field list from a feature service
I have a feature service of polygons with a "siteid" field. User clicks on map and the location is used to spatially query the feature service and return the "siteid" for the polygon. No problem with a script.
From this siteid, I want to select all assets that are associated with the siteid from a hosted feature table and return a description of the asset. Then, when an asset description is selected, I need to return the asset id for that asset and store in hidden field.
I've put the data in a csv file in the survey123 linked content and tried the below and nothing is returned.
autocomplete search('PropSched','matches','site','${siteid})
I've also tried to do the search using the hosted table like below and nothing is returned.
autocomplete search('prop?url=https://services1.arcgis.com/********/arcgis/rest/services/Property_Tables/FeatureServer/3','matches','site','${siteid})
I am able to use a script to return all the assets for a site in json and could format that as needed. But, don't know how to use that to populate the select_multiple.
No idea where I'm going wrong and I've spent way too much time on this. Any help would be greatly appreciated.