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
?