- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 05:41 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:46 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 08:18 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:46 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 08:18 PM
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