The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
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-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
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.

TAGS
AUG Leaders

Atlassian Community Events