Field Style Icon change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 10:33 AM
Hi
On Incident form i am trying to change the icon that is used to highlight VIP users.
- I uploaded the png file to system UI --> Images
- Then Created a new Field style with these values
- Table = Incident
- Field Name = Caller
- Value = javascript:current.caller_id.vip == true
Style
background-image:url('images/icons/<newly added png file name>');
background-repeat:no-repeat;
background-position:98% 5px;
padding-right:30px;
But still i am not be see the new image, the old configuration is still working. Can you pls suggest, that could be wrong.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 10:41 AM
Change value to:
javascript:if (current.caller_id.vip == true) {true;} else {false;}
Also, for style use:
background-image: url('<newly added png file name>');
background-repeat:no-repeat;
background-position:98% 5px;
padding-right:30px;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 10:46 AM
I tried its still not visible. Javascript functionality works , i just want to change the image to be displayed.
i tried
background-image:url('<filename>.png'>
Its still not working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 11:37 AM
The vip icon in the OOB incident form shows up based on a client script called Highlight VIP Caller.
If you simple want to change the image without changing any other functionality, update the client script.
The line that requires update is :
callerLabel.setStyle({backgroundImage: "url(images/icons/vip.gif)", backgroundRepeat: "no-repeat", backgroundPosition: bgPosition, paddingLeft: '30px' });