Hi,

I may be doing something wrong but have tried several times and cannot get anywhere. I have a content type set-up with a phone field. This is set to British. This works fine for most cases, such as:

+44 (0)1123 111 111

However if I want to enter a shorter number, such as:

+44 (0)1123 111 11

I get an error - "is not a valid British phone number". So the question is, how do I enter a five digit number?

Nick

Comments

gpk’s picture

gpk’s picture

Status: Active » Closed (duplicate)
g1smd’s picture

> +44 (0)1123 111 111

> However if I want to enter a shorter number, such as:

> +44 (0)1123 111 11

> I get an error - "is not a valid British phone number".

Both of those are not valid numbers. There is no 0112 area code in use.
All of the valid (011x) three-digit area codes have NSN length of 10 digits.

In fact, most GB numbers have NSN length of 10 digits.

There are only 41 geographic area codes (as well as some 0800 and all 0500 numbers) that have NSN length of 9 digits.

This list shows the details:
http://aa-asterisk.org.uk/index.php/01_numbers

g1smd’s picture

I have rewritten the GB module to cover all UK numbers, submitted the patch #1728312: CCK Phone GB - Complete rewrite of code. and it awaits test.