Forums

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

Custom field minimum xx characters

Marco
Contributor
August 25, 2023

Hi there,

 

is there a way (without any paid addons) to set a minimum of entered characters for this field? I can only find posts regarding the maximum numbers of characters. 

 

For example the project has a free text field called reason and the reason you enter there should be at least 20 characters.

1 answer

1 accepted

0 votes
Answer accepted
Fabian Lim
Community Champion
August 25, 2023

Hi @Marco

You can probably use the regular expressions validator which is out of the box.  Here are some instructions: https://confluence.atlassian.com/jirakb/using-workflow-regular-expression-check-validator-to-restrict-text-field-in-number-format-859509784.html

There is a section for minimum.

Regards,

Fabian

Marco
Contributor
August 28, 2023

Thank you @Fabian Lim that worked.  In the End I used the expression 

[\s\S]{20,}

 for all characters and at least 20 characters with no maximum limit. 

The website regex101 was also quite helpful to get the right expression

Like Fabian Lim likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events