Configure a Field Type - Phone Number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 06:26 AM
Hi All,
I want to use the field type phone number but my country is not included in the list.
How can I add a country to the list?
Another question is how can I create a new type (for example: 4+ digits string ).
Thanks:)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 06:51 AM
Hi,
The countries that exist in a Phone number field is dependent on the [sys_phone_territory] table.
You can add a new country in this table if your specific country does not exist.
These records depend on records that specify available phone number formats [sys_phone_format] for each country.
So after creating a new country, you would also need to create one or several phone number formats.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 01:29 AM
I need a phone number without the + in the begging is it possible?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 02:03 AM
Then I would recommend using a regular String field, and use Regex validation on the field.
Optionally you can create a Integer field, if you want to force using only digits on the field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 02:39 AM
It's a back office field so it is possible to use a script for validation with regex and I want to avoid this.