Problem: I have a custom search View with multiple filters. I am trying to show and hide some filters using CRED conditional groups, but it's not working.
Solution: CRED (or Forms) conditional groups cannot be used in a View's search filters. They can only be used in Forms. At this time there is not an easy way to show and hide some filters based on the selections in other filters.
Views has a feature called "Limiting Filter Inputs According to Available Results". When this configuration is chosen, the filters will respond intelligently each time a new filter is selected, so that only the filter options that would produce results are enabled. Unfortunately it is not as customizable as conditional HTML.
Relevant Documentation:
https://toolset.com/documentation/user-guides/front-page-filters/advanced-settings-custom-search/#dependent-parametric-search
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 6 years, 6 months ago.
Assisted by: Christian Cox.