Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

Change background color of row in List view based on values

VL10
Tera Expert

Is there a way to change the background color of a row in the list view based on the values (so like a conditional formatting)?

Use Case Example:  if a incident list view, change the priority 1 rows to have a background of red.   or if a task with a overdue due date, etc.


Many thanks in advance for your help.

 

 

2 ACCEPTED SOLUTIONS

AshishKM
Kilo Patron

Hi @VL10 ,

We can change the background color of individual cell in list via style [sys_ui_style], but i dont think there is such direct option available for entire row.

Refer :

https://www.servicenow.com/community/developer-forum/row-coloring/m-p/2001556/page/2

https://www.servicenow.com/community/developer-forum/row-coloring/m-p/2001556 

 

-Thanks,

AshishKMishra

View solution in original post

Amit Gujarathi
Giga Sage

Hi @VL10 ,
I trust you are doing great.

The only way to attain this is to have field styles for all the fields present in the list layout applied individually. Field styles allow you to declare individual CSS styles for a field in a list or form.
Please find the below link for the same.
https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/navigation-and-...

View solution in original post

2 REPLIES 2

AshishKM
Kilo Patron

Hi @VL10 ,

We can change the background color of individual cell in list via style [sys_ui_style], but i dont think there is such direct option available for entire row.

Refer :

https://www.servicenow.com/community/developer-forum/row-coloring/m-p/2001556/page/2

https://www.servicenow.com/community/developer-forum/row-coloring/m-p/2001556 

 

-Thanks,

AshishKMishra

Amit Gujarathi
Giga Sage

Hi @VL10 ,
I trust you are doing great.

The only way to attain this is to have field styles for all the fields present in the list layout applied individually. Field styles allow you to declare individual CSS styles for a field in a list or form.
Please find the below link for the same.
https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/navigation-and-...