Notifications
Announcements
No record found.
I want to write a javascript for email validation in crm . How can I do that? where to write how to integrate etc
*This post is locked for comments
What exactly your need? do you need to validate the email attribute in your from?
if that is your question, first solution is when you create the field you can set the Type as Single Line of Text, and for Format select E-mail.
For cases where you need to validate a proper e-mail address with a Fully Qualified Domain
Name (FQDN) or if you need to accept only e-mail addresses from a specific domain, use the
following block of JavaScript code in the Onchange event of the field :
function checkEmail(emailField)
{
var email=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([azA-
Z])+/;
if(email.test(emailField))
// alert("true");
return true;
}
I want to write a javascript for email validation in crm. But i want match email for only one mail address , whenever i want to fill any other email address then alert message can pop up but when I fill valid email then it can be accepted e.g. I write xyz@gmail.com then show me alert but when I write xyz@hotmail.com then it will never alert it can accepted.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2