01 Mar
Posted by: mitch in: Customization, Dynamics CRM
Ben Vollmer had an excellent post on how to hide navigation items using a bit of JavaScript.
I decided to put that into play tonight to remove the Sub-Accounts navigation option when the user displays the Account screen. We don't want Sub-Accounts on this solution so the following code will remove it.
Just put it into the Account Form OnLoad event.
var navSubAcct = document.all.navSubAct;
if (navSubAcct != null) { navSubAcct .style.display = "none"; }
Thanks Ben.
2 Responses
Adi
21|Mar|2008 1How you get this id —> navSubAct
mitch
21|Mar|2008 2You open the page up with a web browser, select View, Source, then look for the text label of the item you're interesting in. The Id of the item should be in close proximity to the text label.
Leave a reply