How to make a set of fields collapsible

Hemnathrk
Tera Contributor

Hello,

 

We have a set of variable set fields shown all the forms at the top. Though this is essential, we would like to make these set of fields collapsible to save space on forms, user can open the section if they would like to make changes. Is it possible to set it up at the variable set level it self instead of designing the individual forms, because there are hundreds of them.

1 REPLY 1

Sumanth16
Kilo Patron

 

Hi

Make sure, your sysid is correct. You can get the sys_id of the container by opening the container variable record and right click on the header and copy sys_id

function onLoad() {
expandCollapseAllSets(false);
toggleVariableContainer('1483325b4f004300e3c8fe75f110c7cb');
}
(or) 

Using variable set :
You have to goto variable set or variables from left nav pane and then from list view you need to get the sys_id.

function onLoad() {
toggleVariableSet('d84942f56fe482005de9f00dba3ee460', false);
}


Please mark this response as correct or helpful if it assisted you with your question.

Thanks & Regards,
Sumanth Meda