Hide sections on workspace

Vinya Jakkula
Tera Contributor

Hi Team please help me how to hide sections in service operations workspace based on assignment group.

I have created a ui policy and selected view as sow eventhough not working.

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

@Vinya Jakkula 

you can use this to hide form section in client script.

Ensure you select "Global" checkbox so that it runs in workspace view as well

g_form.setSectionDisplay('section name', false);

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar i need to hide only on workspace.

@Vinya Jakkula 

then use this logic in your client script so that it works only for workspace view and that too in workspace and not in native

Keep global checkbox checked

if(top.location.href.indexOf('/now/sow') > -1){
g_form.setSectionDisplay('section name', false);
}

OR Another way is to give sow as view name and then add your logic

AnkurBawiskar_0-1747057056696.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar  both are not working.