Skip Navigation

[Resolved] Conditionally show a custom search filter based on another filter

This thread is resolved. Here is a description of the problem and solution.

Problem: I have a custom search View that includes several filters. I would like to show or hide some filters based on the selections made in other filters.

Solution: There is not currently a good way to manage the visibility of filters like this. We do offer an option "Only show the available inputs" which may help clear up the display, but granular filter visibility control is not currently possible.

Relevant Documentation: https://toolset.com/documentation/user-guides/front-page-filters/advanced-settings-custom-search/#dependent-parametric-search

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#630560

I have a view with several filters :
- a radio button "furniture" or "service" ;
- a taxonomy multiselect with furnitures ;
- a taxonomy multiselect with services.

When the user selects "furniture", only the furnitures taxonomy multiselect should show.
When the user selects "services", only the services taxonomy multiselect shoudl show.

When the user selects a category into one of the taxonomy multiselect filters, both of the radio buttons must still be visible, in order to allow the user to change his mind.

Thank you.

#630658

Hi, we don't offer a feature that conditionally shows and hides filters based on other filter selections. This requires custom code that falls outside the scope of the support we provide here in the forum. The only similar feature we provide is the Advanced Custom Search setting "Only show available inputs" as described here: https://toolset.com/documentation/user-guides/front-page-filters/advanced-settings-custom-search/#dependent-parametric-search