Field styles for List field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2019 08:50 AM
Can we create field styles for list or list collector type of fields in service now. We are trying to add field styles for watch lists. For some of the users, it has to show them as highlighted on incident form. For this, We've implemented a custom flag on the user table and tried to add a field style for which the flag is true. The user service now test should show red color when added to watch list. Any help is appreciated. The field style works on list view but doesn't work on form view.
The field style is referencing a client callable script include which looks for the flag on users.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2019 01:44 PM
Unfortunately, that is not how the style is applied. When you use the style, it is shown on the entire value of the field and not individual portions of the field. It is like saying "I want to highlight the word TEST in Blue any time the short description contains the word TEST".
It is now unclear what the purpose is of highlighting the list of users is within the watch list on an incident record. If there is a strong business need for this feature, you may have to use a different way of listing the users other than in a single field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2019 09:17 AM
if you enter a value in the 'value' field the effect is on the list tab.
if you leave the value field empty the effect is on both list and form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2020 04:32 PM
Did you find the solution for this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2020 05:28 PM
Hi Vivian,
if you are looking for field style on form field then OOB we have client script "Highlight VIP Caller". You should look into this
Replace yourInstanceName with your actual instance name in the URL and check. I hope this will help.
Thanks & Regards,
Sharjeel
Muhammad