How can I limit the number range for a number custom field to 1-50?

Nadine March 20, 2018

Hello everyone

I have already been digging the net but cannot seem to find the correct script so I'd appreciate any help:

How can I limit the range of input values for a number custom field to 0-50? Must be some regular expression like ^([1-9]|[1-5][0-9])$ but I cannot get this to work since I have no programming skills at all. :-(

Many thanks

1 answer

0 votes
Alexander Tynetalo September 8, 2020

Hi, ^([1-9]|[1-4][0-9]|50)$ - is correct regexp)

Hemanth Kumar September 23, 2022

@Alexander Tynetalo Thanks it worked for me, but what about 3 digit numbers ? I tried to work around but was not lucky enough. I need to set the range (60 to 8400). Kindly assist.

Alexander Tynetalo September 26, 2022

Hi @Hemanth Kumar
I suppose a site like 3widgets.com would help you to create a regular expression for your custom number range

Like Hemanth Kumar likes this
Hemanth Kumar September 26, 2022

@Alexander Tynetalo thanks a lot. It helped

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events