Home › Forums › Backend Issues (wp-admin) › True / False Field Type Limit › Reply To: True / False Field Type Limit
Hi @dashawk
Thanks for the screenshot. I understand the question now.
This is far to custom to include into the core im afraid. That said, it would be possible for you to write some custom code to do this for you.
I would add a function to the wp_head action which would append some jquery to the page. You could query the DB for the amount of posts with this checkbox value (see docs for querying), then depending on the value, you could generate some jQuery to either remove / hide or disable the checkbox field.
All up, it should only take 30 minutes or so.
Good luck
Thanks
E
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.