How to prevent customers input invalid email on portal?

Feb 10, 2010 at 3:08 AM

Hi all,

I found one customer updated his email to aa@aa.com;bb@aa.com from eService portal. This caused the emial notification failed. CRM does not support multiple email addresses in the email field. So I'd like to add email verification on the Edit profile page of the eService portal. but I can't find where I can add the code.

any ideas?

Thanks,

Alan

Feb 18, 2010 at 11:47 PM

Assuming you're using the default pages the profile information is updated using the EntityEditor.ascx user control.
There's a SaveEntity() method in there that you could use to check for valid email formats on the save event. If you want to add some field validator to the markup (ie asp:requiredfieldvalidator) you could do that in the PopulateHtmlTable method.

*** Handle with care though! That usercontrol is used for other things as well ;-)

HTH,
Rgds - Marcus.

 

Feb 23, 2010 at 2:37 AM

Hi Marcus,

 thank you for your response.

I tried adding a validator in the PopulateHtmlTable method. the validator works, but the save button always do the save action regardless the effort of the validator. what do I do?

Thanks,

Alan

Feb 23, 2010 at 5:29 AM

Hi Marcus,

I added the check in EntityEditor.ascx.js. It works.

thanks,

Alan