VIP tag in service Operation workspace

SM123
Tera Expert

Hello All,

In ServiceNow OOB we have VIP tag for caller field in incident form in default view same i have configured for RITM table for "requested for" field. i read some kb articles saying that we can't configure same for sow view. but can we make at least VIP visible at record information section as it already configured OOB for incident form (ref image attached) in sow view. 

Basically, i want same vip tag in RITM form in sow view as incident form in sow view. 

 

your response will be appreciated

 

client script used for RITM table to make vip visible in default view :

 

function onChange(control, oldValue, newValue, isLoading) {
    var requestedForLabel = $('label.sc_req_item.requested_for');
    var requestedForField = $('sys_display.sc_req_item.requested_for');
    if (!requestedForLabel || !requestedForField)
        return;

    if (!newValue) {
        requestedForLabel.setStyle({backgroundImage: ""});
        requestedForField.setStyle({color: ""});
        return;
    }
    g_form.getReference('requested_for', vipCallerCallback);
}

function vipCallerCallback(user) {
    var requestedForLabel = $('label.sc_req_item.requested_for').down('label');
    var requestedForField = $('sys_display.sc_req_item.requested_for');
    if (!requestedForLabel || !requestedForField)
        return;

    // Check for VIP status
    if (user.vip == 'true') {
        var bgPosition = "95% 55%";
        if (document.documentElement.getAttribute('data-doctype') == 'true')
            bgPosition = "5% 45%";

        requestedForLabel.setStyle({
            backgroundImage: "url(images/icons/vip.gif)",
            backgroundRepeat: "no-repeat",
            backgroundPosition: bgPosition,
            paddingLeft: '30px'
        });
        requestedForField.setStyle({color: "red"});
    } else {
        requestedForLabel.setStyle({backgroundImage: ""});
        requestedForField.setStyle({color: ""});
    }
}

 

Thank you!

7 REPLIES 7

SM123
Tera Expert

Refer this images

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @SM123 

 

This is too much customization,  ootb vip flag only available on native view buy but in Xanadu release vip flag available on SOW as well but only for Incident.

 

You can check that , n Try forvRITM

 

*************************************************************************************************************
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]

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

Sumanth16
Kilo Patron

Hi @SM123 ,

 

This feature is added OOTB in the Xanadu store release of SOW for ITSM

https://docs.servicenow.com/bundle/xanadu-release-notes/page/release-notes/it-service-management/ser...

https://www.servicenow.com/community/incident-management-sow-forum/vip-indicator-on-sow-service-oper...

 

Please hit like and mark my response as correct if that helps


Thanks & Regards,

Sumanth meda

 

 

 

 

 

Hello @Sumanth16 @Dr Atul G- LNG ,

My PDI is xanadu release but i still can't see VIP tag in sow view. Attached ref images,

I made abel tuter VIP.

Thank you!