Knowledge found and lost while working with Microsoft Dynamics CRM
RSS icon Home icon
  • Removing Sub-Accounts from the Dynamics CRM 3.0 Account Form

    Posted on March 1st, 2006 mitch Print Print 2 comments

    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.

     

    Customization, Dynamics CRM
    1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
    1,771 views
     

    2 responses to “Removing Sub-Accounts from the Dynamics CRM 3.0 Account Form”

    1. How you get this id —> navSubAct

    2. 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