I need to toggle a Filter widget on and off but need styling and dynamic content in the label, which the filter widget itself does not provide. This is to allow the user to see the number of Clubs, for example (Clubs: 2,368), and choose to remove clubs from the map and keep the other options (e.g. Trails, Facilities).
I'm trying to do this with Button widgets. I can easily configure one to turn the Clubs off, but cannot get it to turn them back on. If I use a separate Button for 'On', they seem to conflict and nothing happens.
Any ideas?
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
@DarraghOSullivan Thinking about it (see my other comment in the connected post to you), this could be trickier than others' cases. Is it one filter widget with one item, one or multiple clauses? Maybe you could provide more detailed configuration/screenshots on this? Thank you.
Thanks @TonghuiMing In this case it's a simple filter widget with one item and one clause. I can think of other scenarios (potentially coming soon!) that may require a specific filter among several in a widget to be toggled on/off. But I'd be happy to have a solution for the simplest case first ...
@DarraghOSullivan What confuses me is that, if you're using a Filter widget, then there is always a method of activation (either toggle, button, or auto-applied), which seems to fail your expected scenarios (dynamic display). Are you using this button widget to control the toggle on/off state of the toggle inside a filter widget panel? Or are you trying to discard the Filter widget directly and achieve data source filtering by solely using a Button widget? Or, are you using a dev edition custom widget to achieve that?
@TonghuiMing Thanks again. I'm on AGOL and essentially I need styling and dynamic text. I need a pretty button with text e.g. Clubs: 2,467 (where the number is dynamic) that, when the user clicks, they can remove, or re-add, Clubs from the map and other elements. I need similar for Trails and Facilities. I know I can partially style a filter widget but not enough and no dynamic text ...