Hide Variable Set

Bhushan_Salseka
Mega Expert

Hello All,

I have created a variable sets. But on particular selection i am able to hide variable of variable sets. But i am not able to hide variable set title or header bar.

Can anyone suggest it.

Thanks

Regards

Bhushan Salsekar

1 ACCEPTED SOLUTION

Mujtaba Amin Bh
Mega Guru

Hello Bushan,



try this g_form.setDisplay('variable_set_name',false);



Replace 'variable_set_name' with the name of your variable set.



This will hide the complete variable set including title. You don't have to hide variables individually.



Do let me know if it works?


View solution in original post

20 REPLIES 20

Community Alums
Not applicable

I am pretty sure this is still an outstanding bug. Can you share the code you're using?



I would usually use a UI policy to hide the 'container_start' variable on the variable sets, but that does not currently work in Service Portal. There are aware and are working in a fix. It is an issue specifically related to using containers within variable sets. It works if you are using variables and containers right on the catalogue item.



Cheers,



Tim


Hi Tim,



Thanks for your response.


The Catalog UI policy script we are using is:



function onCondition() {


  g_form.setDisplay('name of variabe set',false);


}



In a different thread (Are container start variables broken in Helsinki?), I found that container variables are not working on the Service Portal (Helsinki release).


Cheers,



Tjie-Jau


Community Alums
Not applicable

I suspect it is related to the same sort of issue with the 'sp-layout' directive. All of the issues I have encountered in Service Portal forms appear to be with Variable Sets.



I would open a HI ticket to confirm if this is the case.



Cheers,



Tim


I can confirm that the hiding and showing of variable sets do not work in the SP.   This is clearly a defect, as it works as expected when the container set is not within a variable set.   This topic should not be stated as "answered" as this is misleading, esp. in regards to the Service Portal.




Has there been a HI ticket opened for this, as no fix for this exist within patch 7?


Community Alums
Not applicable

I still have an outstanding HI ticket awaiting fix. I was hoping this would be fixed in Patch 6 or 7, but the last two patches have had very little in the way of SP updates.



Tim