Code Snippet to show or hide a navigation using display name
Function to show or hide Navs
ToggleNavigationItem = function (navName,isVisible) { var navs = Xrm.Page.ui.navigation.items.get(); for (var i in navs) { var nav = navs[i]; if (nav.getLabel() === navName) { nav.setVisible(isVisible); } } };
Usage
ToggleNavigationItem("Accounts",false); //Hide
ToggleNavigationItem("Accounts",true); //Show
Note: The labels are case sensitive
Great Information you have shared, Check it once salesforce Online Training Bangalore
ReplyDeleteAmazing Article Written. I am very much glad to read your article.
ReplyDeleteI am Following Your From Last 6 Month and really linking the stuff
you post on your blog on Regular Basis.
Keep Posting blogs like this….. Thanks alot
also we provide WhatsApp API Integration Services. if any thing you need then please visit us https://umstechlabs.com/use-cases/whatsapp-integration-crm/
I read your article n blog
ReplyDeleteMy vote goes to your article
kepp it up
do work like this
we provide service WhatsApp API Integration With Tally