- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 08:51 AM
I found a previous post about using a Client Script to collapse all containers onLoad. I have put this into place however it does not appear to be working. Has something changed that it won't work in Yokohama?
Below is what I have which is very simple.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2025 06:55 AM
I just opted for the togglecontainer command as that seems to work, I will assume the other one ended up depreciated as it was originally offered as a solution back in Geneva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 09:01 AM
this is for normal form or catalog form?
what debugging did you do?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 09:12 AM
Hey Ankur,
This is for a catalog form. I have created the catalog item and added this as a client script.
From a debugging perspective as it is just a toggle it either works or doesn't I guess I could add a info message an ensure that comes up but otherwise pretty clueless. I am about as basic at coding as can be.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2025 06:55 AM
I just opted for the togglecontainer command as that seems to work, I will assume the other one ended up depreciated as it was originally offered as a solution back in Geneva.