Hide catalog items only from portal view

kumarabhimanyu
Kilo Explorer

I want to hide few items from portal view. Itil users can order those items from instance but not from portal view.

6 REPLIES 6

Chetan Mahajan
Kilo Sage
Kilo Sage

Hi,

            You can achieve this by catalog client script where UI type field should be Mobile/Service Portal.

 

or 

you can write onload client script where you can check in URL is /sp is present then Variable will get hide.

function onLoad() {

var url = top.location.href;

if (url.indexOf('/sp') > -1) {

// this is sp page and hide the variable

g_form.setDisplay('variableName', false);

}

}

 

Kindly mark correct and helpful if applicable

Chetan Mahajan
Kilo Sage
Kilo Sage

Hi,
did you try to add an  'user criteria' to your catalog items ?
On your item, In advanced view, go to "Not Available for" tab, and add a new criteria on Groups or Role membership.
role=itil for example.

 

Kindly mark correct and helpful if Applicable