Is there a way to truncate a field length on list view

michaelmorgan
Giga Contributor

Is there a way to force this field to truncate to a specified amount? I would like the field to Truncate on lists to 100 characters, but be able to contain 160 characters if you view the record within the form.

I understand you can do it globally within User Interface Properties, but is there anyway to override it just for a specific field?

find_real_file.png

3 REPLIES 3

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Hi Michael,



It is possible to truncate the display on a list view for a field by playing with the Dictionary Attribute "No truncate". When set to "false" it will truncate the display to 40 chars.



See more here:



Dictionary attributes



no_truncatetrue/falseany string fieldIn a list view, shows the entire text value of the multi-text value in a list, without truncating it. Without this attribute the string is truncated based on the UI property Number of characters displayed in list cells which is 40 by default.

Hi Sergiu,



Sorry there - I know about that one, i was wondering instead of 'no_truncate' if there was an option to set a custom truncate amount just for one column?


Hi Michael,



Check out this thread. tl;dr there is no way to adjust column widths at the moment but advice is to submit a feature request as the more they get for the same thing, the better the chance of them developing it!



Column width


Enhancement requests: Using HI to tell us how you would improve the ServiceNow product