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

You can use toggleVariableContainer('<sys_id>');


But ideally, you would store the sys_id as a system property then reference that.


That way it won't be flagged in an ACE report.


guys
Kilo Contributor

You've likely solved this by now, but as I'm working in a Jakarta instance, it is hideable properly. Use a UI Policy to hide it, and make sure you check the boxes to show it / apply it to the views you're using.



If you don't have the "UI Poliicy" related list, add it via the Actions UI (Configure -> Related Lists)


Then, add a rule to apply when a field is a certain value


Under that rule / UI Policy, add a UI Policy Action, and select the container as the variable. Then, choose "Visible": false