How can I highlight a FIELD in list view?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2017 07:22 PM
Hi All,
I want to be able to highlight a specific field in list view. I tried Defining field Styles and followed the Wiki Defining Field Styles - ServiceNow Wiki but it does not seem to work. I tried using javascript for the value field but still does not work. The following is the screen shot of configuring styles page. I want to highlight all fields in the category field which has the value "Security"
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2017 07:28 PM
Hi Thiraj,
Try updating the condition on your field style to javascript:current.category == 'Security'.
Thanks,
Venkatraman.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2017 07:55 PM
Hi Thiraj,
If you want to highlight anything or do something on list level then always put java script condition inn "Value" field.
if you are not sure about any condition then you can also try with javascript:1==1;
Check the section 3 in below link.
Defining Field Styles - ServiceNow Wiki
Thanks,
Harshvardhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2017 08:58 PM