How to check if the user enters email in correct format while submitting the service request form?

omkar2
Giga Contributor

The user should not be able to submit the form if the email is in incorrect format and prompted to correct it.

find_real_file.png

PS: I am using the username field above to auto-populate the user's email using catalog client script. Please help! Thanks.

1 ACCEPTED SOLUTION

Rajesh Mushke
Mega Sage
Mega Sage

Hey omkar,



why don't you create Email type variable



Email

The email variable creates a widget for users to enter and select an email address. It accepts only valid email expressions containing @ and domain information.



Example of an email variableExample of an email variable



Refer:


https://docs.servicenow.com/bundle/kingston-it-service-management/page/product/service-catalog-manag...




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

View solution in original post

10 REPLIES 10

This does not seem to work on the portal (Jakarta). Email icon shows, but the item will still submit and no error message is given regardless of entry. Note: that it works as it should from the instance service catalog.