Background Color not displaying on form view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2019 07:09 AM
I've been having trouble setting the background color of a field to display when a user is on the form view. Currently, the color only displays on the list view. Don't know where I'm going wrong with this one.
Below is my condition/field and tables. Script is working fine.
When I navigate to List View it displays the correct color. See below:
However, when I enter the Form view, the color is not displaying. Any thoughts on why this is occurring??
Form view below:
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2019 07:13 AM
Hi there,
This has to do with the value field. If this is filled, the field style will not be applied on the form view. Without a value in the value field, you will see the field style working.
For list view this is different, this will work, also if you use the value field.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2019 07:15 AM
"Note: The value only affects list field styles. To apply field styles on both lists and forms, leave this field blank."
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2019 07:24 AM
Hi Mark,
Below is an example of why this is confusing. The background color shows up on both the form and field view with a value script. This is exactly the same process I will need to implement.
Below is the form view:
Below is a screenshot of the styles for the compliance score percentage field:
So this field is showing the correct color with a value included.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2019 05:31 AM