How can I highlight a FIELD in list view?

thiraj
Tera Contributor

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"

find_real_file.png

Thank you

3 REPLIES 3

venkatvraman17
Kilo Guru

Hi Thiraj,



Try updating the condition on your field style to javascript:current.category == 'Security'.



Thanks,


Venkatraman.


Harsh Vardhan
Giga Patron

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


ramak
Giga Expert

Click the 'Personalize' list cog wheel icon on the list view and uncheck the 'Modern cell coloring'..you must be able to see the colored rows in your list.



find_real_file.png