- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2015 09:29 AM
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
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2015 01:16 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2016 06:41 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2016 06:46 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2016 07:06 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2016 01:46 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2016 02:07 PM
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