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 

did you check which view gets rendered in your instance?

In my OOB instance it was sow

May be it's different view. Please check the correct view and remove that related list and then it will get removed.

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

@Virendra K 

Hope you are doing good.

Did my reply answer your question?

I believe I have provided enough guidance for your question and responded to all of your questions.

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

@Virendra K 

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

@Virendra K 

Hope you are doing good.

Did my reply answer your question?

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 

 

Your code helped me to resolve the issue. Below code will help to work in Workspace.

function onLoad() {
    var URL = this.location.href;
    if (URL.indexOf('/now/sow/') > -1) {
      g_form.hideRelatedList('change_task');

    }

}