Sow or hide Object tabs conditionally

Posted by ByronB on 16-Apr-2015 05:50

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

All Replies

Posted by Godfrey Sorita on 16-Apr-2015 10:06

If the tab is active, you can use the code below to hide the tab:


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.

Posted by ByronB on 16-Apr-2015 10:28

Why thank you, worked a charm.

This thread is closed