Collapse/expand container

tejumes
Kilo Guru

I have a record producer has 6 container . I'm able to collapse all the container when catalog onLoad with the below script.

Catalog Client script

OnLoad

setCollapseAllIcons('collapse', '');

expandCollapseAllSets(false);

BUT user wants to expand the first container alone when the catalog onLoad other container needs to be collapse.

I tried with togglevariablecontainer() and toggleSectionDisplay('sys_id'); NOT working.

Any help??

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

expandCollapseAllSets(false);


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


View solution in original post

14 REPLIES 14

Sounds great, but for the uninitiated,

What is this script associated with? Order guide? Catalog item in order guide? Something else?

Where does one find the container sys id? Is this the sys id of the cat item?

 

-e-

Midhun1
Giga Guru

Hi Teju,



I just tested this, following is the function.


For Geneva and higher versions we can use toggleVariableContainer('sys_id of container');


lrugen
Tera Contributor

Thank you! I have it working now.


After years I had to come back to my own answer and use it 😄

Midhun1
Giga Guru

find_real_file.png