Select to view content in your preferred language

Survey 123 Auto Populate from Layer

569
3
09-03-2023 07:52 PM
DeanHowell1
Occasional Contributor III

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.

Tags (1)
3 Replies
ZacharySutherby
Esri Regular Contributor

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. 

Thank you,
Zach
0 Kudos
DeanHowell1
Occasional Contributor III

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.

BNix_TPA
New Contributor III

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}, "'")

0 Kudos