Set Character limit on Multi-line Variables for 4 variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Set Character limit on Multi-line Variables for 4 variables : We have 4 different variables in a catalog form where we have to set limit for them for eg : Description(400), Name(250), Stock(350), Lines(380) how to achieve this pls let me know with less code and as per the best practise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
the only option is to use onChange catalog client script as max_length attribute doesn't work on Multi-line text variable
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Okm @Ankur Bawiskar agreed, i tried but my script didnt work for 4 varaibles for single variable its working, i want to achieve in a single catalog client script hows that possible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
each variable is different so you will have to write 4 onchange scripts
OR
1 onSubmit script
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @LearnerSN
In ServiceNow, max_length attribute does not work for Multi-line text variable .
So for your use case, you can use OnChange or OnSubmit Catalog Client Script.