Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

how to hide section in from workspace view

rinathombar
Tera Contributor

hello

 

I want hide policy setup section in policy form

 

if anyone know pls suggest 

1 ACCEPTED SOLUTION

@rinathombar 

so you are saying you want to hide only when that record is opened in Compliance workspace then section to be hidden?

if record is opened in SOW then don't hide section?

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

12 REPLIES 12

@rinathombar 

so what was the question?

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Tanushree Maiti
Kilo Patron

You can configure a UI policy with Run script.

 

Execute if true:

 

function onCondition() {
g_form.setSectionDisplay('<your section_name>', true);  //Display section
}
 

Execute if false:

 

function onCondition() {
g_form.setSectionDisplay('<your section_name>, false); //Hide section
}
 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

rinathombar
Tera Contributor

I create UI policy and hide the section for workspace view and default view both

if possible only for workspace view only hide the sections?

@rinathombar 

yes you can make your UI policy run only for workspace view

Uncheck Global and specify the workspace view

55.png

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@rinathombar 

Thank you for marking my response as helpful.

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader