Home › Forums › Feature Requests › Allow the selection of multiple buttons in the new button group › Reply To: Allow the selection of multiple buttons in the new button group
Option buttons only allow for one option chosen (when they all share the same name), but I’m sure you know that 🙂
I managed to use checkboxes as a group in a quick test that I just did.
I only did it within Chrome Dev tools, but it proved to be pretty easy if you have some CSS and JavaScript skills.
I don’t know if it’s planned to create a Checkbox group, but if it’s important to you right away, you can apply the same Class as the button group, to a group of checkboxes. Then you can use JavaScript to add the “selected” class to the Label when clicked (and remove it when clicked again). Plus you need to remove some right margin between the boxes… then it suddenly looks exactly the same, and allows for multi-select.
I haven’t the time right now, else I would have done it for you. Seems like a fun quick project. I will pass on the suggestion to make it part of ACF.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.