Service Portal: toggle variable containers

bigbacon
Giga Guru

It looks like this is not an option for forms on the service portal. 

 

What alternative is there for easily hiding/showing blocks of variables without just having to keep track of setting visibility for each and every control on the form?

1 ACCEPTED SOLUTION

By adding one Catalog UI Policy Action for the Container Start variable, every variable in the container is made not mandatory and hidden in this case.  This is working for me in Service Portal and the native UI.

View solution in original post

8 REPLIES 8

In the simplest form, without any conditions, here's what's working for me

BradBowman_0-1734462290426.png

where 'integration_details_st' is the name of a Container Start variable.

so add every single variable to a UI policy and set to not visibile? 

 

Whats the point of the containers now if service portal is what they want you to use?

By adding one Catalog UI Policy Action for the Container Start variable, every variable in the container is made not mandatory and hidden in this case.  This is working for me in Service Portal and the native UI.

what is weird is this did work and then it stopped working....

 

So I made a catalog UI policy for when the form loads and it should set a container to visible false and it doesn't work....but it did at one point.

 

edit:

actually, it doesn't work at all in some variables. They are just ignored for no reason.

 

edit #2:

it looks like if something is manditor you can't hide and containers just don't hide and do what you say.

 

edit 3:

Things get all out of wack trying to do it this way. It doesn't always hide the container because something is manditry and unless you set it to not before the hiding the container, it never works.

 

It also won't let me change the manditory or read only for a variable inside of a container once the container is visible again. everything is manitory and not-read only no matter what I do to try and change that.