In the RITM we have variables that are like in sections which are shown in below attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 04:45 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 06:53 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 03:12 AM
Hi Brad, I didn't get it, Can you explain clearly please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 05:24 AM
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.