I’ve got pro form set up to collect emails and save them in Form Submissions. I’ve got regex validation on the field to make sure its specific email format (abc@abc.com and not just the pro form default abc@abc ). I’ve also got an animation which is triggered with On Submit event.
The form validation works in that if it’s not valid (example, abc@abc) there is no saved form submission and there is no redirect. However, this still triggers the On Submit event and the animations start.
The client doesnt want people to be able to submit abc@abc email, it has to have a dot[domain]. For some reason the default pro forms validation allows abc@abc and client wants it to be abc@abc.com. So the regex validator I set up is working for that and there is no form submission & redirect (#top) without regex validation. But the animations get triggered with no regex validation. You can tell when the submission is actually valid and submit because the action redirects and appends #top to the end of the url.
regex:
^.+@[^.].*.[a-z]{2,}$
Anyway to work around this? Thanks. You can check out live url below:
https://goodlucklounge.wpenginepowered.com/preview/
Maybe there is an alternative solution. The end result requires email formats to have a DOT DOMAIN at the end and not just email@email
Thank you