SuiteCRM 8 Phone Extensions?

Seems like a super basic question, but I’m just starting to use SuiteCRM 8. When I enter a phone number in SuiteCRM 7 like 111-111-1111 ext. 111 is how I normally handle extensions. SuiteCRM 8 won’t accept this!

What are other people doing? Is there a specific format extensions must be entered in? Or do I need to create an additional field for extension?

What to do you mean? Maybe you need to create logic hook with regex to handle your requirement.


Regex for phone number - iHateRegex

I don’t need to to “re-format” a phone number and extension, I just want to know how to enter a phone number with an extension.

Is ext anothe filed before phone field?

I could able to add this number in 8.8 beta for account module

image

Yes, that’s one option I could add another field for “extension”, I’m wondering if that’s the optimal solution or is there some format that phone can be entered in the phone field.

I think there is no particular format for phone field. You may need to find out code related to it.

I can’t be the only one that needs to enter in extensions in people’s phone numbers in SuiteCRM 8! I can’t believe this hasn’t been asked before.

Yeah! It is strange that no one asked about it. I did not find any issues or PRs on the GitHub too. :melting_face: :melting_face:

I just tried the online demo and ext 123 doesn’t work but I’ve always used x123 and that still works.

Can you please provide some example here that how you write it? So, it will help @pstevens and others to understand it.

adding x10 does not work for me on SuiteCRM 8 in my installation.

So I eventually opted for just creating another field.

This is not ideal, it would be great if it just accepted 111-111-1111;ext.123 then the mobile phone dialer link will work in mobile.

(I know I can customize this field type, but it seems to me like this is something everyone would want a standardized solution to)

1 Like

Yeah, that’s true! We need field which accept extension too.

I just tested this again using the online suite8 demo and it works. Just open a contact and edit one of the phone number fields. I did both the “Office Phone” and the “Mobile Phone” entries and I could enter (832) 000-9384 x123 and (860) 879-5898 x10


Maybe you are entering a Capital X instead of a lowercase x? I can even remove all spaces and change the number to 860-879-5898x10 and it works. This is using the online version Version 8.8.0-beta.

Yeah, you’re right. I tried x10 on another install of SutieCRM 8 and it works. It must be specific to the install. I checked both the working case and non-working case and they are both the default Phone fields.

Anyone know why this could be? The non working is 8.5.1 and the working is 8.7.1 so maybe this was fixed in between?

In 8.7.1, Phone field validation uses a regex in config/services/ui/ui.yaml


In 8.6.2, there is no regex in the file, so it looks that it might have been fixed in 8.7.1.
We can override the regex if required. Copy the file at extensions/defaultExt/config/services/ui/ui.yaml and change the regex.

2 Likes