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
cmctamcmctam 

field masks

hi
 
i'm getting into a time cruch to complete this project
 
the default telephone format based on my locale is not what i want
i'd pefer if all phone numbers were forced to look like
613.555.5555 ext xxxx
 
so, user enters 10 numbers it formats as above
user enters more than 10 the format assumes international
else error
 
how do i go about this in salesforce
 
i assume i use a validation rule
could some show me a rule they've used for this
 
thanks
tammy
ckempckemp
You could make a trigger on the object and use regular expressions to pull out the digits from the input and change them to a "clean" format.