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
vgorgolvgorgol 

Phone type field on a VF page not acting the same for English and French Users

We have created a VF that contains a phone field. When an english user (user whose language has been set in Salesforce as English) types in the phone #, it formats properly, (999) 999-9999.

 

When a French user (user whose language has been set in Salesforce as French) types in a phone #, it remains in pure text form, 9999999999.

 

Why would the field react differently based on the language setting of the user?

jeremyyjeremyy

If the user's locale is US, salesforce will do some phone formatting, as you have discovered.  IIRC, if the locale is not US, salesforce doesn't bother trying to format the phone number.

 

There is a distinction between Language and Locale.  I think locale is what drives the formatting.  Check the User record values for these fields. 

vgorgolvgorgol
Even for our english users, it is set to Canada, not US, and it formats properly.  The french users locale is French (Canada). Would it format differently for a French (Canada) user?