function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ladykb27Ladykb27 

Phone Validation / REGEX

We have a number of problems with phone number entries, our contacts integrate with another system and we are having failures due to unseen characters being entered into phone numbers... these seem to happen when numbers are copy paste into salesforce.

 

The user cannot see them and is not aware, sometimes this can simply be a leading or trailing 'space'..  I want to add validation that will ensure numbers are added and cannot be saved with these present,

 

Im wondering the best way to do it as there are so many different ways to enster a phone number, is thier a REGEX for it?  we mainly work on UK numbers but could have to add internationsl.

 

Thanks

Ladykb27Ladykb27

SORRY!!! didnt mean to post in this forum, re-posted in Fornula's and validation