Home › Forums › Front-end Issues › Submit frontend form even if validation fails › Reply To: Submit frontend form even if validation fails
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
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.