I’ve got an event listener on ‘submit’. addEventListener(“submit”, …) works well.
However what I really need is an event listener for the successful submission on submit so I can call a function (animation) only after validations have passed (and the submission is logged). Right now when the email validation (regex) fails, the event “submit” is still fired in Pro Forms even though no submission is logged.
Bricks has this ‘success’ event built into their forms as ‘bricks/form/success’, but unfortunately I am not able to do the same in Pro Forms. I had to revert back to using bricks native forms because of this.
Would love this event to be added to Pro Forms please!!
Thank you