How to hide entire section in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
"Questionnaire Information" and "Service Provider Information" are two sections. I want to hide them if there are no visible fields under them. Is it possible to hide them dynamically?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
31m ago
oh come on @Jessica1307 I am trying to help you here in my free time...
Please attach some helpful screenshot to see what section you are referring to. the better question the better answer. I cannot help you without context or visibility. What do you say?
Answers generated by GlideFather. Check for accuracy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @Jessica1307
Add following code in onload client script of Workspace view.
UI Type: All or Workspace.
Type: onLoad.
Global: Uncheck this to specify a workspace view.
View: Target the specific workspace view (like Service operation workspace)
function onLoad() {
g_form.setSectionDisplay('Questionnaire_nformation', false);
g_form.setSectionDisplay('Service_Provider_Information', false);
}
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti