set minimum character length of text fields in catalog item

Vasavi O
Tera Contributor

Hi Everyone,

 

I want to Set a minimum character limit of 6 to all text fields on the catalog form, there are around 10  fields in the form which are single line and multi line so for that fields Need to set a minimum character limit. [attaching the screenshots of fields]

could someone help me on this ,

 

 

Thanks,

Vasavi

3 REPLIES 3

Sandeep Rajput
Tera Patron
Tera Patron

Hi @Sandeep Rajput , I want to set the minimum character limit of 6 not maximum so the user should be able to  enter the characters of 6 atleast and not less than that .

 

Thank you.

Ankur Bawiskar
Tera Patron
Tera Patron

@Vasavi O 

for single line max_length will work

But for multi-line you will have to use either onChange client script or use Variable validation Regex

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader