Home › Forums › ACF PRO › Validation problems Front End Ajax ACF => 5.5 › Reply To: Validation problems Front End Ajax ACF => 5.5
I’m having what I think is a similar issue with ACF PRO versions >= 5.5.0.
At present, I have front-end ajax submission forms that work well with ACF PRO 5.4.8. On the js end, the script first checks for validation errors via the acf/validate_save_post
action, and if the returned object from that call includes data.valid: 1
I go on to call an action attached to acf_form_head
that updates field values.
However, with versions >= 5.5.0, no data/object is returned from my first acf/validate_save_post
call.
Here’s an example of an object that’s getting sent to acf/validate_save_post
in my jquery ajax call:
{
acf[_validate_email]:"",
acf[field_5745dbdfc7e0b]:"Foo Bar",
action:"acf/validate_save_post",
_acfchanged:"1",
_acfform:"Mm0rU0VT[abbreviated]",
_acfnonce:"7ba82c905c"
}
And here’s the response that call gets using ACF PRO < 5.5.0:
{
data:{
errors:0,
valid:1
},
success: true
}
Any ideas about why I’m no longer getting a response to this call would be very much appreciated!!!
Thanks,
Ethan
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.