Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Container Start needs to be Collapsed by default

mangesh9
Mega Contributor

Hi,

Can anybody please suggest, how can we make Container in Service catalog Collapsed by default, I don't want to show fields within container when form is loaded, fields should be visible only when user expands the container.

Thanks in advance

Mangesh

4 REPLIES 4

Ashutosh Munot1
Kilo Patron

HI,


Can you use onload script as below:

 

function onLoad() {
setCollapseAllIcons('collapse', '');
expandCollapseAllSets(false);
}

 

Thanks,
Ashutosh

May be some syntactical error is in your code Ashutosh but below 1 worked,

toggleVariableContainer('b220952f0fe51700abfedb0be1050eec');

How to only collapse some container? 

The 'toogle way' does not work in the serviceportal ...