Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Expand and Collapse of container in Service Portal

kuttti
Kilo Guru

Hi,

I am trying achieve the below functionality of expand and collapse functionality of variables, can anyone please suggest how it is possible through widget.

find_real_file.pngThanks!

5 REPLIES 5

Swapnil Soni1
Giga Guru

Hi,

In addition to above

try this

expandCollapseAllSets(false);

 

toggleVariableSet('3c9975a10f3ed200781ccf8ce1050e05'); //replace with the sys id of the first container variable..

 

Please mark helpful or correct if this answer correct or helpful.

Thanks