Home › Forums › Bug Reports › disable via prepare_field › Reply To: disable via prepare_field
The stylized UI uses a select2 field and not a checkbox field. Select2 fields cannot be disabled. It might be possible to do by adding custom JavaScript, but to be honest I don’t know for sure. But it can’t be done using the prepare field hook or in PHP using any hook.
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.