set minimum character length of text fields in catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 06:01 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 06:03 AM - edited 02-11-2025 06:06 AM
@Vasavi O You can set max_length attribute on the variable. For more information please refer to https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0718701
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2025 10:49 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 06:25 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader