Home › Forums › Bug Reports › Checkboxes no longer working › Reply To: Checkboxes no longer working
I’m also having issues with checkboxes that default to checked
. My fields are implemented via PHP, so if 'default_value' => 1
then the field always appears checked on edit screens, and if the associated post is saved, the field is cleared/removed from postmeta (though I should note that the hidden _name
meta remains).
Testing shows that defaulting the field to unchecked
(i.e. 0) allows the field to display and store the data properly.
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.