Email Validation on custom widget

Samyak Jain2
Tera Guru

I created a custom widget in which i created custom field "email" by a html code, so now i want to apply a validation so it accept only valid emails, so where i should write the script i tried all the method can someone help me?

1 REPLY 1

Brad Tilton
ServiceNow Employee
ServiceNow Employee

If you have a custom widget then you may be better off using the AngularJS email validation, which you can find documented here: https://docs.angularjs.org/api/ng/input/input%5Bemail%5D