how to add an icon to a field in service operation workspace

Yash38
Kilo Guru

How to add an icon to a field/ beside a field(Caller) for incidents but in service operation workspace.

 

I have been able to add the icon to the incident form to the caller field in a normal default view but using an onChange Client script but its working in Service Operation Workspace.

 

How to add the same to Service Operation Workspace.

 

Regards,

Yash

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Yash38 

 

I can see it is available OOTB

 

AGLearnNGrow_0-1738667963949.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Yash38
Kilo Guru

hi @Dr Atul G- LNG 

 

I want to add a new icon to the caller field, I have been able to achieve it using below 2 methods via client script for default view:

 

callerLabel.setStyle({backgroundImage: "url(images/icons/warning.gif)", backgroundRepeat: "no-repeat", backgroundPosition: bgPosition, paddingLeft: '30px' }); ->Uses the icon from the list /now/nav/ui/classic/params/target/image_picker.do
 
and
g_form.addDecoration('caller_id', ' icon-alert-triangle', 'Sanction Applies'); -> Uses the icon from list: /styles/retina_icons/retina_icons.html
 
But these are not working in service operation workspace

Hi @Yash38 

 

Thanks for the update, as per my experience, it is not easy and feasible to add icons on WS, as WS is built up on different technology, not the same as the Native view. Try via UI Builder else no way mate. Happy to wait for other comments as well.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG 

Thanks for your response,

In that case do have any idea how come VIP icon is being displayed beside caller field in Service Operation WS. As you can see in the screenshot attached here

I want to achieve similar behavior with an additional/different iconVIP.png