Home › Forums › General Issues › Set field as required only if post status exists › Reply To: Set field as required only if post status exists
There isn’t any way to know what the post status is (if it has been change) during the validation request because the value of that WP setting is not passed during the validation request.
It might be possible to do this using the this filter but I do not know the details on how that would be done https://www.advancedcustomfields.com/resources/javascript-api/#filters-validation_complete
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.