How can I hide container in service catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2015 11:27 AM
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
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2015 11:33 AM
leave the question text blank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2015 11:35 AM
Bharat, I need to hide it based on some conditions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2015 11:58 AM
Hi Sourabh,
This will get your work done. You need to find out the sys_id of the container and then use
- try {
- $("container_03c0169ccd8bf800d16dbf12db4aa87b").hide();
- } catch(error) {}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2015 12:35 PM
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.