The CreatorCon Call for Content is officially open! Get started 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

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

Ashutosh Munot1
Kilo Patron
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 ...