28 July 2007

How to allow '&' in email address

CRM 3.0 doesn't allow '&' in email address ,however, it's a requirement to make it possible!
The file you need to change is located in: \_forms\controls\INPUT.text.eml.htc,
The idea is change the regular expression for email field:

/*
Allow '&' in email address
Need to edit htc file(HTML Components)
\_forms\controls\INPUT.text.eml.htc
*/
//var _validEmailRegexp = /^\w([-._'\w]*\w)?@\w([-._\w]*\w)?\.\w+$/;
var _validEmailRegexp = /^\w([&-._'\w]*\w)?@\w([-._\w]*\w)?\.\w+$/;

2 comments:

Anonymous said...

I've made a similar change in Dynamics CRM 4.0.
I had the need to support "FAX:" and "SMS:" in the mail field.
I've changed in IMG.lu.htc and INPUT.text.eml.htc to allow for more regular expressions, but when I try press "Send e-mail" and try to save it gives an error message saying "Invalid e-mail format".

Anonymous said...

酒店經紀PRETTY GIRL 台北酒店經紀人 ,禮服店 酒店兼差PRETTY GIRL酒店公關 酒店小姐 彩色爆米花酒店兼職,酒店工作 彩色爆米花酒店經紀, 酒店上班,酒店工作 PRETTY GIRL酒店喝酒酒店上班 彩色爆米花台北酒店酒店小姐 PRETTY GIRL酒店上班酒店打工PRETTY GIRL酒店打工酒店經紀 彩色爆米花