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
SabrentSabrent 

Phone Data Type

The standard Phone field on Account has data type Phone. As per documentation, a phone number is validated and formatted based on user locale. However that doesn't seem to be the case. I can enter any characters and digits and it gets saved as is. 

Am i missing something ? 
Raj VakatiRaj Vakati
Phone type will accept the digits and chars also because its a string .. if we use the phone type it will be formatted based on the your user locale settings 
SabrentSabrent
Thanks Raj Vakati.  I thought Phone data type accepts only Digits and, formats based on User locals settings 

so if I enter 798798798798798798798798, and user locale is USA, it would throw a validation error, because it should be 10 digits

And if i enter 1234567890 it would save it as (123) 456-7890 . 

But clearly thats not the case, it saved the phone number as  798798798798798798798798