To apply the is-active
class to a "View All" radio button using Finsweet's Attributes for CMS filtering in Webflow, you need to use their active class feature properly and identify the structure of your radio button group.
fs-cmsfilter-field="your-field-name"
fs-cmsfilter-type="single"
— this ensures only one filter is selected at a time.fs-cmsfilter-reset
(to clear that specific filter field)fs-cmsfilter-reset="all"
This tells Finsweet to treat it as a reset button, clearing the selected filter and showing all items.
is-active
class to active filter elements.fs-cmsfilter-field
.is-active
to it, as if it's another filter option.fs-cmsfilter-reset="all"
, Finsweet will only apply is-active
if it's styled like a filter button, not a separate reset control.If the "View All" is not treated as one of the radio buttons (i.e., not grouped with the others), Finsweet might not automatically apply the is-active
class. In that case:
is-active
to that element while removing it from others.fs-cmsfilter-reset
so no scripts are needed.To apply the is-active
class to a “View All” radio button using Finsweet Attributes:
fs-cmsfilter-field
.fs-cmsfilter-reset
(for per-field reset) to the "View All" button.is-active
class when the filter is cleared.