- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2022 11:10 PM
How do I restrict length of characters of variables in multi row variable set and only alpha-numeric characters should be allowed
I have create a multi row variable set for catalog item form.
So that I can add multiple customer codes just by clicking on add.
How to validate to allow only alpha - numeric characters and miimum and maximum characters 6 or 7 (example: test123)
if i use client script getting out as below:
Please help me on this.
Thanks,
Suresh
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2022 12:02 AM
Hi
You have to use the max_length=7 as variable attributes for Customer Codes[customer_code] variable in MRVS * annotations as
Enter Customer Codes up-to 5 characters only
For Regular expression, you to add new regex in Service Catalog ---> Catalog Variables ---> Variable Validation Regex with your message.
Regex - ^[a-zA-Z0-9]*$
Result -
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2022 01:24 AM
Hi @Sagar pagar,
You helped me a lot to solve the above issue and it is working good.
Thanks,
Suresh karedla