How to hide entire section in workspace

Jessica1307
Tera Expert

"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?

 

6 REPLIES 6

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.

Tanushree Maiti
Tera Patron

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);

}

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti