changing background color of list view

servicenow14710
Tera Expert

Hello developers,

Can we use the modern cell coloring based on table as unchecking this cell is impacting all the tables . I need this background color change of list view for a particluar table.Thanks.

@Ankur Bawiskar any suggestions.

 
2 REPLIES 2

Sai Shravan
Mega Sage

Hi @servicenow14710 ,

 

Yes, you can use the modern cell coloring based on table. To do this, follow these steps: Go to the list view that you want to change the background color of.

  1. Click the gear icon in the top right corner of the list view. Select "List Settings". In the "List Settings" dialog, select the "Modern Cell Coloring" checkbox.
  2. Select the color that you want to use for the background of the list view cells.
  3. Click "Save".

The background color of the list view cells will now be changed to the color that you selected. If you uncheck the "Modern Cell Coloring" checkbox, the background color of the list view cells will be restored to the default color. Note that unchecking the "Modern Cell Coloring" checkbox will impact all of the tables in the instance. If you only want to change the background color of a particular table, you can use the following steps:

  1. Navigate to "field styles"
  2. Create new - select the table name [eg : incident]
  3. Select the field name [eg : number]
  4. Give the value i.e the matching conditions [eg:javascript:current.hasAttachments();]
  5. Use the script in the style [eg : background-color: red]
  6. Save the record.

Regards,

Shravan

Please mark this as help and correct answer if this helps you

Regards,
Shravan
Please mark this as helpful and correct answer, if this helps you

@Sai Shravan : Hello sai shravan , i used the field style for sysapproval table of change_request (based on approved/rejected etc.,), but it is impacting the color update to other tables and fileds as well.

Can you please share screenshots of the changes  as it is not working for me, as it will be helpful for others too.Thanks  so much