Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2019 09:48 PM
Hi,
I have a form in that i want to do Email Id validation it should be abc123@gmail.com
please help me on the same functionality.
Regards,
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2019 10:53 PM
hi
check this code in background script
var emailAddr='abc123@gmail.com';
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(emailAddr))
{
gs.print('yes')
}
else{
gs.print("You have entered an invalid email address!")
}
If my response helped please mark it correct and close the thread.
Thanks,
Rahul Kumar
Thanks,
Rahul Kumar
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2019 11:11 PM
I was resolved the same functionality by self and it is working fine.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2019 11:23 PM
Great.