Home › Forums › General Issues › Error page when form submitted ajax validation failed › Reply To: Error page when form submitted ajax validation failed
Hello @hube2
I found the solution here :
After many tries I found the solution based on this answer : https://wordpress.stackexchange.com/questions/307794/error-in-validate-field-with-acf-plugin-in-wordpress#comment473230_319945
I called
if (!is_admin()) {
Problem comes because of ajax use and is not admin function.
Hope this help someone else 🙂
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.