Multiline text variable attribute set to 4000 but still allows over 4k limit

reginabautista
Kilo Sage

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

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

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.


View solution in original post

6 REPLIES 6

Kalaiarasan Pus
Giga Sage

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.


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


I remember that it does not work for multiline text vairable last I checked. I ended up creating a client script for that.


Ankur Bawiskar
Tera Patron
Tera Patron

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


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader