In the RITM we have variables that are like in sections which are shown in below attachment

mastan babu ko1
Tera Contributor

In the service request we have different variables sections on the RITM form.

So defaultly, Those sections are openly (-) coming in the ritm form i.e., shown as attachement1

Now I need those sections should be collapsed or closed the (+) as like in attachment2

 

Is there any feature in servicenow or any other way to make it possiable? 

 

Need Help Please!

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

You can do this with an onLoad Catalog Client Script

toggleVariableContainer('YOUR_SYS_ID_HERE');

Where the sys_id is that of the container start.

Hi Brad, I didn't get it, Can you explain clearly please 

In the Catalog Item definition, on the Variables Related List you will have some records with the Type = Container Start.  View one of these records for a container that you want to open in the collapsed format.  Right-click in the gray header bar and choose Copy sys_id.  Next create an onLoad Catalog Client Script:

function onLoad() {
	toggleVariableContainer('06c99dbc9769355041e1f757f053afea');
}

replacing the value in quotes with your container start sy_id that you just copied.