Skip Navigation

[Resolved] Select "All" checkbox to select all the categories in view filter

This support ticket is created 4 years, 5 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 4 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#1763563
All Selection in Toolset.png

Tell us what you are trying to do?
<< I have created a view for custom post type, It has two different taxonomies. We have used those taxonomies as filters checkbox. I would like to add a new option "All" in the filter. So, when someone clicks on "All" checkbox, all the checkboxes (related to that filter) should be checked and un-checked. Please suggest some solution which require less or no custom code to archive this.

What is the link to your site?
<< hidden link

#1763607

Hello,
Since Toolset does not provide a "Select All" checkbox feature for custom search filters, any solution is going to require custom JavaScript code. This other ticket includes some example code that you can use as a guide to create your own custom solution. You can add custom code to a View's JS editor panel. Note that this is custom code and is not supported here in the forums, so you may need to enlist the assistance of a developer to make this work exactly like you'd expect.
https://toolset.com/forums/topic/view-filters-checkboxes-check-all-checkbox/