Thanks for great plugin. I use PRO version in Japanese and cannot live without it as a WP developer.
I wanna know that How I can override global error message byb PHP or JS.
I can change each field’S one, but I can’t deal with the global one which is like “Validation failed. 1 field requires attention”.
Especially In Japanese, “1 field requires attention” part seems incompatible for translation.
So I wanna override the whole global error message.
I checked json.error via validation_complete filterhook, but it includes only fields’ error message, not the global one.
Thanks in advance!
I’ll appreciate any clue or hint to do it.
Hi,
i did it with jquery:
$(document).ajaxComplete(function() {
$('.acf-notice p').each(function() {
var text = $(this).text();
$(this).text(text.replace('OLD ERROR MESSAGE', 'NEW ERROR MESAGE'));
});
});