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 to Removing Sub-Accounts from the Dynamics CRM 3.0 Account Form

  1. Adi says:

    How you get this id —> navSubAct

  2. mitch says:

    You 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

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>