Hiding Tabs based on Product Type

Was wondering if someone may be able to help me as I’m trying to hide the tabs based on product type and everything i’ve tried has failed :(.

My thoughts were to include a javascript which checks the product type and if its Home for example it gives a display:none in the css to the tabs. But i dont know how to include the js.

Any help would be greatly appreciated.

https://suitecrm.com/forum/suitecrm-7-0-discussion/11050-display-subpanel-based-on-field#37723

Best regards

SInce my file already is including a js file can I add to the code like the following :

 'form' => 
      array (
        'enctype' => 'multipart/form-data',
        'headerTpl' => 'modules/AOS_Products/tpls/EditViewHeader.tpl',
      ),
      'includes' => 
      array (
        0 => 
        array (
          'file' => 'modules/AOS_Products/js/products.js',
        ),
		1 => 
        array (
          'file' => 'modules/AOS_Products/js/hideme.js',
        ),
		
		
      ),

What i ended up doing was having a module built that hides the tabs for me via js. If anyone is in need please contact me as its a great solution to add js externally to all of suite.

This is exactly what I want to do. Hide a tab in projects based on project type. I would love to see your javascript file.

I was planning to use javascript to listen to the project type drop down and hide a tab based on the drop down.

Sorry i missed this… are you still looking to do this :stuck_out_tongue:

Thank you for the reply but I was able to get this to work on my own.