How to create auto formatting Phone Number in Suite CRM ? Thanks :slight_smile:

i want this format. 111-111-1111


I’m not sure why you wrote this question more than once… but at any rate.

My suggestion would be to use a logic hook, before save, that formatted the phone number the way you wanted it. For example, you could strip out any white space, dashes, and parentheses, then add your dashes after the first 6 characters, then after the first 3 characters… and Bob’s your Uncle!

You’ll have to decide what to do if you get more or less than 10 numbers or an international number. One option would be to leave any numbers alone that start with the + symbol, and then educate staff to use a + in front of international numbers.