Progressive filter sets, initially hidden

Hi!

I’m using Finsweet Attribute to set up filters in my portfolio.
I’ve a first filter set (a select with Business goals) and a secondary one (an accordion with Industry and Typology).

What I want is that the secondary set appears only when users select one option in the first set. It’s like a progressive filtering pattern, with the secondary set hidden.
(I’ve already accomplish this behavior with the “Clear” button, but I suppose it’s a completely different scenario)

How can I reach this result?
Thank you!

Martina


Here is my public link: https://martinaasara.webflow.io/
Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Hi Martina, there’s a fair bit of custom coding work involved to build that. The basic parts are;

  • Change trigger on your first input
  • Clear and create the filtered data set view. I do this using a collection list and some custom code to iterate and build the filtered select view
  • Re-initialize FS filter using its API
  • Expand your second accordion pane, and optionally collapse your first one

This gets significantly more complex if you’re also using FS Custom Form Selects, so I wouldn’t recommend it. They’re based on Webflow Dropdowns which do not have an API.

Thank you @memetican.
So, what do you recommend?
Maybe I could use a simple select?
Also, I need some help with custom code… :sweat_smile:

Thanx in advance!

I also thought to use the Combine attribute to filter both, the projects list and the secondary filter list (exactly as in this tutorial Finsweet CMS Filter | Progressive Filtering - Webflow).

Nevertheless, I should still hide the secondary set of filters.

That tutorial is quite limited, I built it as a solution for the simplest cases. But if you can make it work in your situation, that’s awesome.

Most progressive filter builds I make require a more advanced setup, along the lines of what I outlined above for you. It’s a few hours of work but it works great. You can drop me a message if you need a developer for the implementation, but someone on your team should be able to follow the design above if they want to.