Number field length restriction : more than 12 numbers

cedric_palluel July 24, 2017

We created on our customer portal  a request type dedicated to phone issues.

We added a custom field (number type) for Phone number, unfortunately it seems that this field is limited to 12 numbers.

 

Is there any way to extend this limit ?

Thanks,

 

Regards

1 answer

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 24, 2017

A "number" field is for numeric data.  Telephone numbers are not numeric, they're strings of digits.

You should be using a (short) text field for telephone numbers.

cedric_palluel July 25, 2017

Thanks but that means that users will be able to type text instead of number only.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 25, 2017

Yes, I'm afraid so.  But then, the problem with using a number field is that it will never represent a lot of telephone numbers correctly either.  Not just the length, but most numbers in the UK, and all international numbers dialled from the UK, begin with a zero, which a number field won't hold.  Especially painful when it's two or three 0s.  Telephone numbers are strings.

You could find or write a validator to check a telephone number format (I've done it with a painful regex - numbers, pluses, braces and assorted separators are all valid), but the general advice is to simply get the users to be accurate.

Suggest an answer

Log in or Sign up to answer