The CreatorCon Call for Content is officially open! Get started here.

How can I hide container in service catalog

sourabhd87
Tera Contributor

HI All,

I have to hide a container in service catalog. I can hide the variables in service catalog but unable to hide the containers.

Has anyone done this kind of requirement. I tried through UI policies. I have attached a sample for the same.

Kind regards,

Sourabh Dhaygude

6 REPLIES 6

Bharat23
Kilo Guru

leave the question text blank


Bharat, I need to hide it based on some conditions.


Hi Sourabh,



This will get your work done. You need to find out the sys_id of the container and then use



  1. try {  
  2.     $("container_03c0169ccd8bf800d16dbf12db4aa87b").hide();  
  3. } catch(error) {}

I was able to do it by document.getElementByID, but this procedure is not the best practice according to the ACE Report given by Service now.


We cannot use $ or $$ in the code according to best practice. Thats the reason for asking the question here.