When customizing Creatio, there is often a need to hide certain "Detail" tabs in a section. In most cases, the tab can be modified or removed from the layout by using the appropriate toolbar items in the top right of the tab area. Here is an example from the Opportunity section:

Creatio Attachments and Notes Tab
This is a screenshot of the Attachments and Notes Tab in Creatio.

If the switch over to the Feed tab, you will notice that the "X" button is missing. The section designer won’t allow the removal of this tab.

Creatio Feed Tab
This is a screenshot of the Feed Tab in Creatio.

Although the tab may not be removable from the section designer, there is a very extensive API that allows for controlling the layout by going straight to the code. The TabsCollection object provides a way to get to each of the tabs and set their properties at run time. Once you have the collection of tab references via code, it is simply a matter of removing the one you don’t need.

Below is an example of how this can be done for the feed tab. The internal name of the Feed tab is “ESNTab”, so this is how it should be referenced. The same approach can be extended to hide other tabs as well.

methods: { onRender: function(){ this.callParent(arguments); this.hideFeedTab(); }, hideFeedTab: function(){ var tabsCollection = this.get("TabsCollection"); if(tabsCollection){ if(tabsCollection.contains("ESNTab")){ tabsCollection.removeByKey("ESNTab"); } } } }

Once this code is in place on your page, save it and refresh your page. The tab referenced in the code will be automatically hidden when the page loads.

Posted in:

Looking for Creatio help?

We do training, customization, integration, and much more. Contact us today.