This post describes how you can use the Survey123 web designer to dynamically populate a list using an ArcGIS layer or table. If you want to do this with Survey123 Connect, check the Dynamic Lists using Search appearance blog post from @BrettStokes
Typically, lists are static. This is generally not a problem because many lists do not need to change: Yes/No, High/Medium/Low or a list with a well-defined collection of asset types are good examples.
Dynamic lists are those that populate on the fly from an ArcGIS layer or table. Say, for example, you want to display a list with customer names. It would make a lot of sense to populate the list from a table, since the customer database changes all the time.
Dynamic lists can load all, or some records from your table. You can apply attribute and spatial filters: Display all customers that have pending requests, all active incidents, all hospitals inside an area I will define, all available field crews within 50 kilometers from my location, etc.
You can visually configure dynamic lists with the Survey123 web designer. A step-by-step guide is below. If you want to learn how to do this with XLSForm, check this help topic.
Let's build a dynamic list in the web designer: One that loads all records from an existing layer or table. I am going to use a World Countries layer from ArcGIS Online:
The animation below shows what I want to do next: Add a Cities list that only shows cities within the selected country.
You can also filter choices based on location. Below, you can see how I am filtering the country list so only countries within 500 kilometers from the selected location are shown.
I bet you can do this on your own!
I think you will agree that dynamic lists can be extremely useful. They give you a lot of flexibility to keep your lists up to date, without having to touch the design of your survey or republishing it. Dynamic lists can feed from ArcGIS Online layers, tables and views. They also work with ArcGIS Enterprise hosted layers as well as with layers from your multiuser geodatabase. You can use your dynamic lists in web surveys, and in the Survey123 mobile app.
Now, there are a few important things to keep in mind:
I hope this is useful. Thanks for reading all the way to the bottom!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.