- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2019 06:35 AM
I want to validate Emil id field on Costume form how we can achieve this through Client script?
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2019 06:43 AM
Hi Jyoti,
By using below client script you can validate email id on custom form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2019 06:43 AM
Hi Jyoti,
By using below client script you can validate email id on custom form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2019 07:01 AM
Thanks a lot 🙂
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 02:05 PM
The above works but this is much cleaner and more efficient:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
if (newValue.search(validRegExp) == -1) {
alert('A valid e-mail address is required eg:-abc@domain.com.');
g_form.setValue('email', '');
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2023 06:57 AM
Hello @GregLusk
Can you help me in altering the regular expression which validates whether the entered email contains @gmail or not.
For example abc@outlook.com it should not take. Forward email should only take input as abc@gmail.com. Please help me.
Thanks in advance