To hide the navigation option in CRM 2011, we can use the below function.
Ex: I am hiding 'RelationShips' Options from Opportunity Navigation.
HideRelationshipsNav("Relationships");
function HideRelationshipsNav() {
var navBar = document.getElementById("crmNavBar");
if (!navBar) return;
var optionItems = navBar.getElementsByTagName("nobr");
var exitCount = 0;
for (opt = 0; opt < optionItems.length; opt++)
for (a = 0; a < arguments.length; a++)
if (optionItems[opt].innerText == arguments[a]) {
optionItems[opt].parentNode.style.display = "none";
exitCount++;
if (exitCount == arguments.length) return;
}
}
Happy Tracing !!!!!!!!!!!!!!!
Ex: I am hiding 'RelationShips' Options from Opportunity Navigation.
HideRelationshipsNav("Relationships");
function HideRelationshipsNav() {
var navBar = document.getElementById("crmNavBar");
if (!navBar) return;
var optionItems = navBar.getElementsByTagName("nobr");
var exitCount = 0;
for (opt = 0; opt < optionItems.length; opt++)
for (a = 0; a < arguments.length; a++)
if (optionItems[opt].innerText == arguments[a]) {
optionItems[opt].parentNode.style.display = "none";
exitCount++;
if (exitCount == arguments.length) return;
}
}
Happy Tracing !!!!!!!!!!!!!!!
No comments:
Post a Comment