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 

script needs to be modified. I already informed the view which gets rendered OOB for change form is sow so please update the view name and update script as this

I already informed hideRelatedList is not working/supported in SOW

it should be this, comment line 3

if(top.window.location.indexOf('/now/sow') > -1){

//

}

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 

No luck still its showing.

VirendraK_0-1737033647208.png

 

@Virendra K 

I think you missed my earlier comments.

I already informed that hideRelatedList is not working/supported in workspace

 

AnkurBawiskar_0-1737035193835.png

 

Only option shared 2 hours ago

AnkurBawiskar_1-1737035218939.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

@Virendra K 

the view is sow

I checked g_form.hideRelatedList() doesn't work in workspace so it's not hiding

The only way it to remove it from the sow form view by Configure -> Related lists

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 

Yes, I remove it from the sow form view by Configure -> Related lists but no luck