Default Form Section Expansion on Load in Workplace
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Is there a way to ensure that all sections of a form are expanded by default when it loads( workspace) , regardless of whether those sections were previously minimised on other records?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
this worked for me in onLoad client script, this works in workspace only
function onLoad() {
//Type appropriate comment here, and begin script below
g_aw.setSectionExpanded('impact', true);
g_aw.setSectionExpanded('assignment', true);
g_aw.setSectionExpanded('cause', true);
g_aw.setSectionExpanded('resolution', true);
g_aw.setSectionExpanded('related_records', true);
g_aw.setSectionExpanded('incident', true); // main section
}
Output
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

