Conditionally Hide\show tabs in record view?

Hi,

I have seen in other threads where you can conditionally hide\show panels in a records Detail view.

Is it possible to similarly control the visibility of Tabs in a records Detail view?

I have seen from here http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.5/Sugar_Logic/Dependency_Actions/  where the panelvisibility action does not work for Tabed Layouts.

Regards

Greg

Parents
  • You mention record view and detail view, are you needing to do this in Sugar 7 or a pre-7.x version?

    If the former, you can do it via some jQuery code in your record.js controller. Here is a quick snippet to hide and show a tab:

    this.$("li.tab.LBL_RECORDVIEW_PANEL1").hide();

    this.$("li.tab.LBL_RECORDVIEW_PANEL1").show();

    In this case, the tab didn't have label text defined, which you would need to know in order to hide/show the proper tab.

Reply
  • You mention record view and detail view, are you needing to do this in Sugar 7 or a pre-7.x version?

    If the former, you can do it via some jQuery code in your record.js controller. Here is a quick snippet to hide and show a tab:

    this.$("li.tab.LBL_RECORDVIEW_PANEL1").hide();

    this.$("li.tab.LBL_RECORDVIEW_PANEL1").show();

    In this case, the tab didn't have label text defined, which you would need to know in order to hide/show the proper tab.

Children