Home › Forums › Backend Issues (wp-admin) › Dynamically disabling/enabling some select2 options › Reply To: Dynamically disabling/enabling some select2 options
Hi @sil3ntone
I’m afraid you can’t disable the options. But you can always modify the returned data by using the acf/load_field
hook. That way you can remove the options you want. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/
I hope this helps 🙂
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.