How to hide related list tab "Change task" in Workspace but want it native /classic view ?

Virendra K
Kilo Sage

Hi All,

 

The requirement is, I need to show "change task" in classic/native view but its should not be visible in Workspace.

I implemented it in classic view but its visible in workspace as well. I need to hide "change task" related list tab in Workspace.

How I could do it in Workspace ?

 

 

Regards,

Virendra

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Virendra K 

are you saying it should be present in Workspace view here in native?

 

AnkurBawiskar_1-1736956296745.png

 

but should be hidden when record opened in Service Operations Workspace?

If yes then you can use onLoad client script and check the browser url and hide it if it's sow (service operations workspace)

AnkurBawiskar_2-1736956403505.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

View solution in original post

20 REPLIES 20

@Virendra K 

try to use top.window.location

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

Tried but no luck @Ankur Bawiskar 

@Virendra K 

please share your script

Did you check any browser console error came when form loaded in workspace?

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

@Virendra K 

did you try to add simple alert and see the client script is running in correct view?

I was able to get the url using this.

Seems the client script is not running on correct view

 var url = top.window.location.href;
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

Hi @Ankur Bawiskar 

I tried with checking it with view and global=checked but not getting message alerts in native /workspace.

VirendraK_0-1737032261689.png