Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Change the default validation for the Emailaddress

(0) ShareShare
ReportReport
Posted on by 20

Hi,

we want to use a custom validation for the Mailaddress field overwriting the default validation. We are using a Javascript with a  regularexpression Onchange which allows the following mailadress:

xyz-@test.de (^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$)

Because of the Mailformat-Setting for the field, everytime we enter the address, we get the default error.

We don't want to create a new field (without Mailformat) but want to use the old field.

Many thanks

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Change the default validation for the Emailaddress

    Hello,

    I would say go with PCF control that will do modified validation for you.

  • Aardvark Profile Picture
    Aardvark 20 on at
    RE: Change the default validation for the Emailaddress

    Thank you very much for your suggestion. Together with a partner we found out, that it might be a problem with the new UI. If we start Dynamics with the classic UI via ?forceclassic we can enter the xyz-@test.de mailaddress without an error, Maybe it is a bug with the new UI.

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Change the default validation for the Emailaddress

    There's no supported way to change this for the out of box email fields, as the Display Format (which determines the validation logic) is not editable.

    I think your only supported option is to create a new field. You could use a simple workflow or business rule to copy the value from the new field to the out of box field automatically

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.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans