Validate an Email address in a field before request submission

Validate an Email address in a field before request submission

Hi folks,

I have a template (form) with two email fields that I need to validate as an email address.

Would someone please publish a code snippet for validating an email address in the Execute Script of a On Form Sub function and then stopping the submission if the email address is not valid)?

Presently, I have a simplistic validation for an '@' sign, which throws and alert and stops the submission. However, there are more complex versions using regex and javascript, but I'm not sure how to implement the examples:



Thanks,
Adam

                  New to ADSelfService Plus?