How to hide variables in Service Catalog

Mussie
ServiceNow Employee
ServiceNow Employee

Hi Guys,

I have got a requirement where I need to hide variables from displaying on sc_req_item form. The requirement are as follows:

- Hide all variables from displaying from some catalog items on Request Item (sc_req_item) form

- Hide some variables from displaying from some catalog items on Request Item (sc_req_item) form

Could you please suggest on how I can achieve this? I am new to the product so please be detailed in your answers.

Thank you,

Mussie

1 ACCEPTED SOLUTION

Hi Mussie,



You can use variable set for your variables.


Then you can hide the variable set using g_form.setDisplay('variable_set_name',false); in the catalog client script


Don't Forget to tick the applies to requested items.



Thanks,



Tadz


View solution in original post

17 REPLIES 17

Mussie
ServiceNow Employee
ServiceNow Employee

Hi Tadz,



It worked, thank you so much for your help. This is much better than adding the variables one by one. Besides, this doesn't require hardcoding of the sys_id of the catalog item.


Cheers,


Mussie


kambampatinagar
Kilo Explorer

haii Mussie Zemikael,


here i go the solution for your problem, i.e., how to hide variables in service catalog, first you open the service catalog.


1. choose any catalog items in service catalog, and select which variable you want to hide.


2. and Go to maintain catalogs, open previously selected catalog item and select the previously chosen variable.


3. importunate the Active field, for that particular variable and make active is false.


4.and finally observe the changes in service catalog...



Hi Nagaraju,


If I change the Active field to false, then customers won't be able to see the variable on the service catalog. I want the variables to be visible on the service catalog but not on the RITM form. Let me know if I misunderstood the steps you mentioned above.


Mussie