Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hide Workspace Form Section

THDR
Giga Contributor

Hi

I have a form in workspace. I want to hide this section, I was not able to find section name in UI policy. How can I hide the form section that works in workspace? Kindly assist

 

THDR_0-1763710219586.png

 

 

1 REPLY 1

lpruit2
Kilo Sage

Greetings @THDR. Have you tried looking into the GlideForm methods .getSectionNames()  and .setSectionDisplay()? I'll include screenshots down below that will provide more information. You can still use a UI Policy if you use the Script field(s) or you could write this as an onLoad Client Script. 

getSectionNames() method:

lpruit2_0-1763909381051.png

 

getSections() method:

lpruit2_1-1763909425491.png

 

setSectionDisplay() method:

lpruit2_2-1763909464000.png