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

Thanks guys, I've ended up using catalog client scripts to do the validation:



https://www.servicenowguru.com/scripting/gliderecord-query-cheat-sheet/


Hi Reginabautista,

Can you please help with the catalog client script because I have same requirement. I have checked above link but didn't found something relatable.

Thanks in advance!