How can I collapse/expand a form section via script

umermunir
Mega Contributor

How can I collapse/expand a form section via script

1 ACCEPTED SOLUTION

okay,



use this



toggleSectionDisplay('sys_id of the section');



You can get the sys_id of the section either by right clicking on the form and view source/inspect element or go to forms sections ,   find your section and get the sys_id.


-Anurag

View solution in original post

5 REPLIES 5

Anurag Tripathi
Mega Patron
Mega Patron

Hi Umer,



Use these in the client script


g_tabs2Sections.deactivate(); //Deactivate form tabs


g_tabs2Sections.activate(); //Activate form tabs


-Anurag

Hi Anurang,



Thanks for the reply, but I want to collapse/expand a specific section


This method I believe is used for activate/deactivate a section to tab form but I want to collapse/expand a section with help of script


okay,



use this



toggleSectionDisplay('sys_id of the section');



You can get the sys_id of the section either by right clicking on the form and view source/inspect element or go to forms sections ,   find your section and get the sys_id.


-Anurag