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
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


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

View solution in original post

Amit Gujarathi
Giga Sage
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-...


Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi



View solution in original post

2 REPLIES 2

AshishKM
Kilo Patron
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


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Amit Gujarathi
Giga Sage
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-...


Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi