Select to view content in your preferred language

custom Filter widget to reset filter

9404
21
01-18-2021 07:44 AM
Labels (1)
JianT
by
Occasional Contributor

When using Filter widget, the filter will apply to the same data source cross all the pages. for example, in first page, if created first filter to filter a layer (e.g., population, filter by age > 70). If in second page, created second filter with same data source, need to use whole dataset, however only filtered data available, and there is no way to clear the filtering to reset the filter.

Question: is it possible to modify existing Filter Widget  to have rest option? or create a custom widget to reset the filter? Can someone provide sample to show how to create a widget to reset the filter?

21 Replies
DarraghOSullivan
Frequent Contributor

The latest release (June 2025) has added the option for a button to toggle a filter widget open/closed, but this doesn't work for my use case. It seems quite basic to have a button that actually tuens a filter on/off. Do you think this might be implemented, @TonghuiMing 

0 Kudos
TonghuiMing
Esri Regular Contributor

Hi @DarraghOSullivan, what you mentioned is not specifically related to the filter widget. It's a new feature about the interactions between the button and the widget controller (which holds a state of pressed vs. not pressed). Your particular request of resetting filters is noted and under evaluation.

Toggle the filter on/off is something we've provided by the filter widget itself (the "Turn off all filters"), but we do not provide the turn all on features since it would cause performance issues. In addition, in some other cases, using the button/link to page/URL could work, such as https://community.esri.com/t5/arcgis-experience-builder-questions/reload-page-when-navigating-betwee... 

TonghuiMing_0-1751002552101.png

However, in your original case mentioned here, the button widget does not have a toggle state itself, which makes it a bit more complex.

0 Kudos