Phone number format for users

ahmed-24
Tera Expert

Hello Community,

I would like to change the format of the Mobile phone (mobile_phone) field in the User [sys_user] table.

Currently, the phone numbers are displayed in the following format:
Example: 1(449) 260-6439

However, I would like the numbers to be displayed and stored in a simple numeric format like:
Example: 06212348725

Requirement:

I want the Mobile phone number to:

  • Be displayed exactly as entered

  • Not automatically formatted with country code, parentheses, or dashes

  • Use a plain numeric format (example: 06212348725)

Althout i have disable the sys properties for us format but u still have the probleme  : 

 

 

ahmed24_0-1770732095288.png

Sys_properties : glide.ui.format_phone

ahmed24_2-1770732233610.png

 

Thank you for help 

 

13 REPLIES 13

Ankur Bawiskar
Tera Patron

@ahmed-24 

you can't control that as OOTB the field type for mobile_phone is Phone Number

It will format that value.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar so the solution ? change type to string ? but it's not clean this solution !

 

i have found this article : https://www.servicenow.com/docs/washingtondc/platform-administration/r_ConfigureE.164PhoneNumberFiel... but isn't helpfull.

@ahmed-24 

I will recommend not to change field type as you are touching OOTB field type.

Please inform customer about this OOTB behavior.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader