Hi guys, so I am trying to hide an object tab "Contacts" when a user is in an Account record view. What is the best way to achieve this? I see there is the function rbf_showOrHidePageTab but thats referring to the page tabs and not the object tabs.
Any help would be greatly appreciated
If the tab is active, you can use the code below to hide the tab:
$("#rbe_selectedTab").hide();
Otherwise, get the index of tab and use it with the code below:
$("#rbe_tabs div").eq(4).hide();
Make sure to copy either of the code to a script component on the page.
Why thank you, worked a charm.