Home Forums Front-end Issues Prevent Form Submission After Validation


Prevent Form Submission After Validation

  • I have a front-end form. I want to use JavaScript to create a “confirmation” screen which spits out some data from the form into a div. This would need to happen after validation but before submission. I see that in assets\js\acf-input.js LN 12913 the validate() function handles the validation and submission but the submission event I need to prevent the form from actually submission is tied up in the args variable that I don’t have access to in the validation_complete JavaScript hook.

    In short, how can I prevent the form from submitting after validation_complete fires but before submit?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.