My apologies!
So, although I have done those JS measures, what I can also should do is use the hook
acf_reset_validation_errors();
I can do this based on a query string which means if the form is save for later – it does not validate, but if I want to fully submit, we run validation.
I get it now!
acf_reset_validation_errors() is pretty powerful in this situation.
NK
Hi there,
I’m also needing a front end acf_form() to NOT validate. I have a massive form which has a ‘save for later’ option. Obviously with required fields this cannot work.
I have tried the
window.acf.validation.active = false;
and set the submit button to
formnovalidate
what happens now is I no longer get the HTML5 validation on the page, but it now moves to a new page with a window that displays the fields that are not validated.
thus
—————————-
Validation failed
Project Title value is required
Sub-Specialty value is required
Current CV value is required
—————————-
So the form is still not saved unless these fields are populated.
It is at all possible to disable validation on a front end acf_form() ?
Thanks in advance and apologies if I have missed this solution elsewhere….
NK