I have a form in that i want to do Email Id validation it should be abc123@gmail.com

Veera raju
Tera Expert

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.

find_real_file.png

 

Regards,

 

1 ACCEPTED SOLUTION

Rahul Kumar17
Tera Guru

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

View solution in original post

6 REPLIES 6

I was resolved the same functionality by self and it is working fine.

Great.