5078 views

Increasing the Visible Characters of a Field in a List View
(No Truncation)

 

Symptoms


The No Truncation field attribute should be used on a description field when the list view needs to display the max available text width. Setting the exact number of characters to display is however not possible.

ServiceNow lets users with the personalize_list role (including administrators) personalize the columns in any list to show only the desired information. You can add or remove fields (columns) from a list or change the order in which the fields appear in the list. You can hide controls and define access conditions by role to existing controls.

To personalize a list, bring up the list, right-click the list's header bar, and select Configure. For more information, see Personalize a List in the ServiceNow product documentation. 

 

Resolution


To adjust the column width to display the full contents of a column in a list view (i.e not truncate):

  1. From the left navigation menu, select System Definition > Dictionary and find the column record you want to change. 
  2. Add no_truncate to the Attributes field.
  3. Alternatively, you could right-click the list header bar, select Configure --> Dictionary and add the attribute above to the column you want to change.

     

To apply this globally for every field:

  1. From the left navigation menu, select System Properties > UI Properties.
  2. Find the property labeled Number of characters displayed in list cells (glide.ui.list_chars) and adjust the number as desired (default is 40).

 

Additional Information


As it is not possible to set the exact number of characters to display in a column, you can use CSS directives, to alter the column style, similarly to fields style on a form.

Ref. related SN Community articles:
Column width

Change default width of all the Fields on a form

How can i change the width of a field in the form

 

Article Information

Last Updated:2018-03-26 12:27:04
Published:2018-03-26