Home › Forums › General Issues › Changing custom field allowed values › Reply To: Changing custom field allowed values
Removing some of the checkbox values will not alter posts that are already saved, but it will alter them if these posts are edited and updated.
You might want to look at using an acf/load_field filter https://www.advancedcustomfields.com/resources/acf-load_field/
In this filter you could alter the choices dynamically, only removing the ones you want to hide if they are not already selected for the post. The choices for a checkbox field work the same as the choices for a select field https://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/
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.