Frequently asked question
In ArcGIS Experience Builder, the 'View for empty selection' option is a view displayed when no data are selected in a selected features view. This function is useful when a web experience is opened and there is no selection from the user. It prevents misinterpretations or accidental interactions that can occur when data remains visible despite no active selection. Users assume a selection is still active when it is not.
Below are examples of when enabling 'View for empty selection' in the Data panel is the best option in ArcGIS Experience Builder.
When a web experience is first opened, the desired widget displays data for the default feature. Create a filter to ensure only pre-selected results are shown.
The image below shows the configured ‘View for empty selection’ in the List widget is displayed when none are selected in the map.
When a List widget is added, it displays the first entry from the table by default. The dynamic data must remain empty until a feature is selected on the map. This behavior can be misleading because an item shown in the list might be accidentally deselected, causing the feature to revert to displaying the first data entry from the list. So, create a filter to ensure no results are found. The 'is blank' functional operator will consistently show no matches.
In ArcGIS Experience Builder, in the View for empty selection window, configure the following parameters to create the expression.
The image below shows the 'No data' message displayed in the empty List widget until records are selected.
When the data view in the widget on the canvas differs from the List widget panel, the dynamic text message displays a field name variable (in curly brackets) if no features are selected, as shown in the image below. In this example, the widget on the canvas is set to the Default data view, while the List widget panel is set to the 'Selected features' view.
To avoid curly bracket displays in dynamic text messages, enable the View for empty selection option. However, if the Filter data records action is enabled, both the action data and the data used on the List widget can revert to the default view.
The image below shows the dynamic text in the List widget displayed without the curly brackets when no features are selected.
When attempting to create an expression in the Text widget, the expression is not displayed correctly because there are no selected features, as shown in the image below.
This is because the data view is set to Selected features but no features are currently selected. Therefore, by enabling the View for empty selection option in the Data panel, the dynamic value is displayed correctly even when no features are selected, as shown in the image below.
Get help from ArcGIS experts
Download the Esri Support App