Skip to main content
Answer

Phone Number Masking - Extensions

  • April 13, 2023
  • 3 replies
  • 586 views

nathantrauscht
Semi-Pro II
Forum|alt.badge.img

We would like to add the ability to make a note of a contact’s phone number extension, when it exists.

Yes, we can use this sample mask (###) ###-#### Ext: ####

But, if they don’t have an extension, the “Ext:” text still displays, not ideal and does not look professional on reports etc.

 

Does anyone have a clever idea of how to make “Ext:” only show if the 1-4 of the extension numbers exist? I’m new to regular expressions.

Best answer by nathantrauscht

@Laura02 that’s great - we decided to try (###) ###-#### CCC ####

This way, the user can manually type Ext. Of course, it’s up to the users to keep the “CCC” portion consistent, I’d prefer if we can add some sort of regular expression to have it validate the “CCC” section to only accept a preset such as “Ext”

 

It would also be great if we could use phone masking at a Country level to have preset country codes. 

3 replies

Laura03
Captain II
Forum|alt.badge.img+19
  • Captain II
  • April 14, 2023

Hello,

I usually enter the mask in the Company screen without “Ext.” like this (999) 999-9999 9999.


nathantrauscht
Semi-Pro II
Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • Answer
  • April 17, 2023

@Laura02 that’s great - we decided to try (###) ###-#### CCC ####

This way, the user can manually type Ext. Of course, it’s up to the users to keep the “CCC” portion consistent, I’d prefer if we can add some sort of regular expression to have it validate the “CCC” section to only accept a preset such as “Ext”

 

It would also be great if we could use phone masking at a Country level to have preset country codes. 


nathantrauscht
Semi-Pro II
Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • April 17, 2023

Please give this a vote: