HOW TO

Filter records in a List widget based on selected records of another List widget in ArcGIS Experience Builder

Last Published: May 13, 2024

Summary

The List widget in ArcGIS Experience Builder displays data records based on the selected data source defined by a feature layer. In some cases, it is necessary to filter the List widget to only display the records related to a selected record from another List widget. This article describes how to filter the records in a List widget based on selected records of another List widget by adding action triggers to the widget.

In this example, the first List widget is configured to display the records of counties in Oregon, and the second List widget is configured to display the records of existing schools in Oregon. The second List widget is filtered to display records of schools located within a county selected in the first List widget.

Procedure

  1. Open the ArcGIS Experience Builder project, and add two List widgets to the experience. Refer to ArcGIS Experience Builder: Insert widgets for more information.
  2. Configure the second List widget to display the relevant records to be filtered.
    1. On the canvas, click the second List widget to open the List pane.
    2. On the Content tab, click Select data, and select the desired layer. In this example, the Schools layer is selected.
    3. Modify the List widget on the canvas to display the desired data. Refer to ArcGIS Experience Builder: List widget for more information.
  3. Configure the first List widget to display the relevant records and add an action trigger.
    1. On the canvas, click the first List widget to open the List pane.
    2. On the Content tab, click Select data, and select the desired layer. In this example, the Counties layer is selected.
    3. Click the Action tab, and click Add a trigger.
    4. In the Select a trigger pane, click Record selection changes.
    5. In the Select a target pane, click Framework.
    6. In the Select an action pane, click Filter data records.
    7. For Action data, click Select data, and select the feature layer associated to the second List widget. In this example, the Schools layer is selected.
    8. For Conditions, click the Select a trigger field drop-down menu, and select a field from the trigger data. In this example, the NAME field containing attributes of counties name is selected.
    9. Click the Select an action field drop-down menu, and select a field from the action data containing matching values with the field in Step 3(h). In this example, the COUNTY field containing attributes of counties name is selected.
The Conditions for trigger and action data connection.
  1. Modify the List widget on the canvas to display the desired data.
  1. Click Save.

The image below displays the first List widget filtering the results of the second List widget. In this example, the list of schools in the second List widget is filtered to show the schools located in a selected county from the first List widget.

The schools list is filtered based on the selected county.

Article ID: 000030611

Software:
  • ArcGIS Experience Builder

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options