Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

VIP Icon on Incident form (Caller field) configuration in UI16 native view

sd2097
Tera Guru

Hi,

 

I want to understand, from where is the VIP Icon (attached below) configured in the system. We know the functioning that if the Caller.VIP==true, we will get this next to the 'Caller' field on the form.

 

sd2097_0-1793967900847.png

 

 

I was trying to create a new style in the sys_ui_style table (Please see the snap below). But still, even though the conditions in the 'Value' field satisfy, and in the 'Style' field, I have brought the OOB servicenow image, still the image isn't visible like that of 'VIP' on the incident form.

 

sd2097_1-1793967943131.png

 

 

Another observation.  In the out of the box Style record (specifically configured for the 'VIP' icon), I tried to update the condition in the Value field. Even though the new conditions were also matching, the icon wasn't shown on the form. 

 

But as soon as I reverted to the original version, it was working as expected.

 

We want to understand, from where we can configure this, and add a new custom icon alongside the existing VIP icon.

 

Thanks,

7 REPLIES 7

glideFather
Tera Patron

ahoy @sd2097,

 

your style record seems ok to me, perhaps check if there's not any other similar condition that would be blocking this from being evaluated correctly.

 

Another troubleshooting options is to try it for another field, not the u_fac..

 

I have these two posts [1] and [2] that could maybe help you to get some inspiration

Bhavya11
Mega Patron

Hi @sd2097 ,

 

 i think you missed the script part meaning  didn't update the client script "Highlight VIP Caller" , here again script is pointing to url 

        callerLabel.setStyle({backgroundImage: "url(images/icons/vip.gif)", backgroundRepeat: "no-repeat", backgroundPosition: bgPosition, paddingLeft: '30px' });
 
 
if you want to new icon then follow this steps
 

1. Upload a new icon that you want.


2. Go to field style for incident table for the field named caller_id and replace the style with below code:   (this will show the image in list view)


background-image: url('images/icons/<bk.jpg>');


background-repeat: no-repeat;


background-position: 98% 5px;


padding-right: 30px;


3. Also change the name of the icon in Highlight VIP Caller client script for incident table.

 

 

Regarding the icon please refer below thread

OOB image, where art thou?

 

This is surely helpful. But isn't it a bad practice to update this high risk OOB client script?

hi @sd2097 ,

 

Yes, that's correct. I would avoid modifying the OOB Highlight VIP Caller Client Script because it is marked high risk and an OOB customization could create issues during future upgrades.

The important observation here is that the VIP behavior involves both the field style and client-side logic. The OOB Client Script explicitly applies images/icons/vip.gif to the Caller label, so changing only the sys_ui_style record will not replicate that behavior on the form.

For the new requirement, I would keep the OOB VIP implementation intact and create a separate custom Client Script/UI implementation for the additional icon, with a separate condition. That would be safer and easier to maintain.