At some point you may need to show or hide individual nav items or the complete group.
Hide Item:
var navItem = Xrm.Page.ui.navigation.items.get(“navActivities”);
navItem .setVisible(false);
Show Item:
var navItem = Xrm.Page.ui.navigation.items.get(“navActivities”);
navItem .setVisible(true);
Hide Nav Group:
Located the tag which displays the groupname , in this case “Common”. Then hide the parent (as the parent doesn’t have an ID to find).
var navGroup = document.getElementById(“_NA_Info”);
navGroup.parentNode.style.display=”none”;
To find all the necessary IDs, use the IE debugger. This can be started by F12.