Hide sections on workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 06:25 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 06:27 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 06:28 AM
@Ankur Bawiskar i need to hide only on workspace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 06:37 AM
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
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 06:42 AM
@Ankur Bawiskar both are not working.