How to get Custom Icon in List View

arnabbose
Tera Expert

Hello,

I wanted to know how to bring customized icons such as below in list view of a custom table. These icons will depict certain conditions like shared items / transferred items. However, wanted to check if it is possible to bring such customized icons in list view.

find_real_file.png

22 REPLIES 22

Chuck Tomasi
Tera Patron

Hi Arnab,



You can do this with field styles. See the caller_id on the incident table as an example how you could use an image. It's all just CSS, really.



Defining Field Styles - ServiceNow Wiki


Hi,



I know we have that option on field and color code on list view but not sure about icon. Can we get the icon at list view as well? And if yes, can you guide me how?


Oh yeah. Take a look at the example


https://YOURINSTANCE.service-now.com/nav_to.do?uri=sys_ui_style.do?sys_id=9ab364de4a362304002c5f90e1...



It contains an image...



background-image: url('images/icons/vip.gif');


background-repeat: no-repeat;


background-position: 98% 5px;


padding-right: 30px;


ctomasi I was able to bring one icon against a given column / variable. And can bring an icon against as many as I want.


But there seems to be an issue with two icons against a single variable.


Is there a restriction that only one icon can be brought on list view against a given field in service now?