Min length
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2024 05:31 AM
Dear community,
We know there is a max_length attribute for Reference type catalog variables. But how can we realize a min length for the autocomplete search? We would like to achieve that the search only starts when at least three characters got entered into the field.
Any ideas?
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2024 12:47 PM - edited 08-17-2024 12:48 PM
Hello @KAN5 ,
Regular Expression (RegEx) would be the best solution to your problem statement.
Open variable record -> "Type specifications" section -> Select appropriate Validation Regex from drop-down list -> Save it.
In case, RegEx is not present in drop-down. Create new Validation Regex following this path: Service catalog > Variable Validation Regex > Create New.
My previous solutions for reference -
Solved: Re: Validation for number for variable in Catalog ... - ServiceNow Community
Solved: Validation for number for variable in Catalog item
If my response helps you in any way, kindly mark this as Accepted Solution/Helpful and help in closing this thread.
Regards,
Shubham