- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2017 05:32 AM
Hi guys
In my record producer, I have a multiline text variable that I'd like to limit length to 4000. I have set up the variable attribute to max_length=4000, however it still accepts over the set limit. Would you know what's causing this issue?
Thanks
Regina
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2017 05:34 AM
The attribute does not work if you are trying it for a field on the table or multiline variables. However, it works for Service single line catalog variables.
If you are trying this on table, then you would need to enforce the restriction either by using a custom client script or a business rule.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2017 05:34 AM
The attribute does not work if you are trying it for a field on the table or multiline variables. However, it works for Service single line catalog variables.
If you are trying this on table, then you would need to enforce the restriction either by using a custom client script or a business rule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2017 05:37 AM
Hi Kalaiarasan,
Thanks for the reply. I am applying the attribute to a Multiline text variable in my record producer. It is working on Single line text variable but for some reason not working on multiline text.
Regina

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2017 05:39 AM
I remember that it does not work for multiline text vairable last I checked. I ended up creating a client script for that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2017 05:36 AM
Hi Regina,
I think sometimes this issue is present.
For variables there is no limit and allows you to as many lines you like.
You could have a catalog client script which validates the length of the field and alerts the users if it has exceed the X number.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader