Hello I am trying to create a Survey 123 survey where the user selects the 'AssetID' from a list generated from a layer in ArcGIS Online and then uses the selected 'AssetID' to auto-populate other fields.
I have been able to get the list of AssetIDs but can get the auto-populate other fields to work.
At present I am trying directly in Survey 123 but also happy to get advice on doing the same in Survey 123 Connect.
Hello @DeanHowell1,
You can configure a calculation in the Survey123 web designer to query an ArcGIS feature layer or table, please see this documentation for the workflow.
In Survey123 Connect this is called pulldata("@layer"), please see this Esri Community blog for more information.
Thanks @ZacharySutherby I appreciate the link but a comment for Esri in general it would be great to have downloadable examples to be able to see how these things work.
How did you generate the list of asset IDs? I can get the other attributes to load using a calculation that looks like this:
pulldata("@layer", "getValue", "attributes.asset_name","https://services5.arcgis.com/YTApDBs0YanBdxkq/arcgis/rest/services/service_7365ff317d494a2abdd9de690...", ${where2})
The ${where2} = concat("asset_id = '", ${asset_id}, "'")