How do I add a fields that are only visible to fulfillers not customers in catalog item?

Debbie14
Kilo Contributor

I need to add  fields that are visible to fulfillers  and not customers in catalog item? 

2 REPLIES 2

Michael Fry1
Kilo Patron

Use an onLoad Catalog Client script like this:

function onLoad() {

       var itilUser = g_user.hasRole('itil');
    if (itilUser){
        //g_form.addInfoMessage('Itil User Check passed.');
        g_form.setVisible('assignment_group', true);
    }
    else {
        g_form.setVisible('assignment_group', false);
    }

}

akankshak15
Tera Guru

i have implemented the same requirement where i have to show an MRVS to fulfillment team only , for this i implemented the UI policy applied on the catalog item view and in UI policy action i made MRVS variables visibility as false .