@Ankur Bawiskar 

Please correct me if I’m wrong, but as per my understanding, the DOM manipulation in this script is primarily used to determine the position of the VIP image. If there’s another reason for this manipulation that I may have missed, I would appreciate your insights.

 

Thank You 

Juhi Poddar

@Juhi Poddar 

The question is whether it can be achieved without using DOM

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron

@Adarsh kumar si 

Nope

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

vermaamit16
Kilo Patron

Hi @Adarsh kumar si 

 

I don't think we have any other alternative to this OOB Client Script. As a workaround, I could think of displaying a field message below the caller field highlighting that the caller is VIP user as shown below:

 

AmitVerma_0-1736218899360.png

 

Thanks and Regards

Amit Verma

Thanks and Regards
Amit Verma

View solution in original post

Runjay Patel
Giga Sage

Hi @Adarsh kumar si ,

 

You can do something like below.

 

g_form.addDecoration('caller_id', 'icon-star', 'VIP User', 'color-green');

 

To get the VIP user in client script you need to call script include and return true and false.

Check this blog for calling script include from client script to get the vip user.

https://servicenowwithrunjay.com/glideajax-in-servicenow/

RunjayPatel_0-1736225342205.png

 

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------