- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2016 04:53 AM
Need a validation scripts to validate Email field. Field should validate (@ and .)
if somebody attempts to enter the email address without @ and .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2016 05:05 AM
There is a built in method:
if(oldValue != newValue){
g_form.hideFieldMsg('email', true);
if (!isEmailValid(newValue)) {
g_form.showFieldMsg('email', newValue + " is an invalid email, please re-enter email in correct format.",'error');
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2016 05:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2016 05:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2016 06:32 AM
Hi Mike,
Thank you so much for your response.
Thanks and Regards
Anup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2016 04:10 AM
Hey Mike,
It is useful but the thing is it shouldnot trigger the mail also o the provided wrong mail id,but in your case it is not happening.
Also i want @project.com validation in the above script,can that happen?
Kindly help