Announcing the Global SNUG Board of Directors. Learn more here

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Jim Coyne
Kilo Patron

If you want to simply display in a list view when a record has an attachment, you can easily do it with a Field Style:

find_real_file.png

The following Field Style is based on the VIP one for the Caller field:


Table: Incident
Field name: Number
Value: javascript:current.hasAttachments()
Style:
background-image: url('images/icons/attachment.gifx');
background-repeat: no-repeat;
background-position: 98% 5px;
padding-right: 30px;


If you want the icon to display for all task-derived tables, set the Table to "Task" instead. If you need to filter on whether the record has an attachment or not, there's an article in the wiki for that - http://wiki.servicenow.com/index.php?title=Display_Whether_Tasks_Have_Attachments_in_List_View

It is currently setup in the demo018 instance for all task tables if you want to see it in action. I've attached the XML below if you just want to import the Style record (remove the .txt extension).

16 Comments