Monday, 8 January 2018

{Know-How}MSCRM D365 JS - show or hide Tab using display name or label

Code Snippet to show or hide a Tab using display name

Function to show or hide Tabs

ToggleTab = function (tabName,isVisible) { 
    var tabs = Xrm.Page.ui.tabs.get();
    for (var i in tabs) {
        var tab = tabs[i];
        if (tab.getLabel() === tabName) {

ToggleTab("TabName",false); //Hide
ToggleTab("TabName",true); //Show

Note: The labels are case sensitive

1 comment:

  1. Hi. Making this would be my first code. I have my Dynamics 365 app operative. How to start?


Contact Form


Email *

Message *