How to clear/reset dates within Filter widget?

739
7
Jump to solution
08-06-2021 08:52 AM
Labels (1)
BrittanyBurson
Regular Contributor

Hi all, I probably missed a setting somewhere. But I'm unable to figure out how to clear or reset a date filter to no value after selecting dates? Of course I can turn the filter off, but the date values remain, so that when I go to turn the filter back on for something else, the dates still exist and I must have dates selected.

The attribute filters I can manually set back to "All" or similar. But what am I missing when it comes to dates?

A "clear all" would be great too.

BrittanyBurson_0-1628264814750.png

BrittanyBurson_1-1628264852215.png

Thank you! Screenshots are from ArcGIS Online.

 

0 Kudos
1 Solution

Accepted Solutions
TonghuiMing
Esri Regular Contributor

@BrittanyBurson @JonathanMcDougall The reset all filters function has been provided with the latest AGOL 10.2 release. Now as long as the default value is empty and configured properly, the reset button can achieve the goal of clearing all user input:

TonghuiMing_0-1655975445742.png

 

View solution in original post

7 Replies
JonathanMcDougall
Occasional Contributor III

@BrittanyBurson 

I'd take the simple approach and remove the date filter moving it to its own filter. What you've created above is a group of filters that are intrinsically linked, not unique therefore you are asking the user to always make three choices.

BrittanyBurson
Regular Contributor

Thanks for the suggestion, I'll consider this. They're setup to use "OR" and the user prefers to access them all in one click/one place. In Web AppBuilder, each filter can be toggled on/off uniquely while using a single Filter widget. So to really get around this, I'd have to use a unique filter widget for each date. Or refresh the page each time.

BrittanyBurson_1-1628266660910.png

 

0 Kudos
JonathanMcDougall
Occasional Contributor III

@BrittanyBurson 

I agree with a "Clear", perhaps post this in ExpB Ideas, it'll get a Kudos from me.

JonathanMcDougall
Occasional Contributor III

@BrittanyBurson 

Yeah, fully appreciate the user wanting only one interaction, makes sense. The filter can be applied to the Framework, so this means still only one date selection interaction.

0 Kudos
TonghuiMing
Esri Regular Contributor

Hi @BrittanyBurson - this is the same issue as discussed in this post - Custom Filter widget to reset filter. It is something we haven't supported yet but a potential ENH we will take a look in the near future. Keep tuned.

 

Thanks,

Tonghui

0 Kudos
TonghuiMing
Esri Regular Contributor

@BrittanyBurson - Oh and a workaround - currently, if you put the Filter widget (ExB) into a window, and when you close the window, the values got reset:

TonghuiMing_1-1628561860962.png

 

TonghuiMing_0-1628561844738.png

Note that this behavior might change in the future.

0 Kudos
TonghuiMing
Esri Regular Contributor

@BrittanyBurson @JonathanMcDougall The reset all filters function has been provided with the latest AGOL 10.2 release. Now as long as the default value is empty and configured properly, the reset button can achieve the goal of clearing all user input:

TonghuiMing_0-1655975445742.png