Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 87499

RE: Validate/restrict email address domain in Contact record via js

$
0
0

I add only a short comment to Jason's reply.

is better to check if the field has value or it will throw an error if you do indexOf of an empty field.

if (Xrm.Page.getAttribute("emailaddress1").getValue() != null) { ... }

and use "@domain.com", to don't stop email as domain.com@gmail.com for example


Viewing all articles
Browse latest Browse all 87499

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>