Home › Forums › General Issues › acf_form Validation in Block › Reply To: acf_form Validation in Block
I had a feeling that it would not work in the editor.
Have you thought about trying to use the function get_current_screen().
This function only exists on an admin page load and does not exist during AJAX requests. Testing to see if this function exists or not could tell you if it was the page load or not.
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.