Forums › Forums › Search & Filter Pro › Checkbox Select Multiple Values
- This topic has 8 replies, 2 voices, and was last updated 9 years, 7 months ago by
Anonymous.
-
Anonymous(Private) August 19, 2016 at 12:12 pm #55027
Hi,
I have a search form on my site which searches a selection of ACF fields. On the search form I’d like to display all values of a specific field (“Seasons”) as checkbox options. I can do this fine however I’d like to have an additional checkbox option that selects all values (as you have with a select box). For example my field is called “Seasons” so I’d like the checkboxes set out like this:
All
Spring
Summer
Autumn
WinterI hope this makes sense?! Is this even possible to do?
Thanks,
James
Trevor(Private) August 19, 2016 at 2:08 pm #55040Season is spelled wrong. (Seaon)
Ah, I think I see. You have manually made the options? And for one you put a comma delimited list? But our plugin does not see it as a list, but a single value. However, I think you can cheat!!
The ANY checkbox has this value:
Spring,Summer,Autumn,WinterTry making it this:
Spring-,-Summer-,-Autumn-,-WinterMy guess is that it will tick all four seasons.
Anonymous(Private) August 19, 2016 at 2:38 pm #55046Sorry just one more thing! I’m trying to do the same thing to the 2nd set of check boxes but this time the code doesn’t appear to be working? Is there a limit on the number of check boxes you can apply that to?
This is the code I’m adding to the value field for “Any”:
Flowers-,-Foliage-,-Berries
Thanks,
James
-
AuthorPosts