Display Image for OIP users similar to VIP users

prabh
Mega Expert

HI All,

 

I want to display image for OIP users like we have for VIP users in SNOW.


I checked the script "Highlight VIP Caller" and the url of the image given is "images\icon\vip.gif".(pls tell me from where i will find vip.gif)

 

I have uploaded the new image oip.gif in Images in SNOW. but donot know what should be the url for background image.

 

Please help how to set the background image.

1 ACCEPTED SOLUTION

Preety,



I have tested your requirement at my end here in Demo instance and found that your are using the wrong url, for your custom image you need to just past the name of your image in the url tab as


"url(img/TST.jpgx)" where you need to replace TST.jpgx with your own image.



Thanks!


View solution in original post

26 REPLIES 26

Jacob_Andersen
ServiceNow Employee
ServiceNow Employee

Anytime you upload an image into SN's (via the images module), you it should give you a URL that you can use to access the image.   If you don't remember what it was, go to the images module, open the image record, and it should be there toward the bottom of the form.



If this answer is helpful/answered, please mark it is such to help those who are asking the same question in the future.


Hi Jacob,




I am getting the below reference for image :



Use the following code for displaying in content blocks:   <img src="3off.pngx" width="41" height="41"/>



Please tell me , this is the URL you are talking about ?


Hi Preety,



As per your requirement, you can use the following syntax to show your own uploaded image through script:


<img src="Very Satisfied.png" width="65" height="40" style="margin-left:42px;"/>



where need to replace Very Satisfied.png with image you have uploaded in the system.



Thanks!


Hi Rajeev,



If I use <img src="Very Satisfied.png" width="65" height="40" style="margin-left:42px;"/> in place of URL its showing syntax error .



callerLabel.setStyle({backgroundImage: "url(images/icons/vip.gif)", backgroundRepeat: "no-repeat", backgroundPosition: "95% 55%"



Thanks