JavaScript to hide left navigation from form in CRM 2011

Use this

http://rajeevpentyala.wordpress.com/2011/12/12/hide-navigation-items-pane-on-form-in-crm-2011/

Things below were applicable for CRM 2011’s CTP Version (unsupported)

We can use the following JavaScript to hide the left navigation pane from form in CRM 2011

function LeftNav() {


// hide the left navigation pane

document.getElementById(“crmNavBar”).parentElement.style.display = “none”;



// after hiding the crmform’s content panel moves to left


// to set it back to full width set the colspan

document.getElementById(“tdAreas”).parentElement.parentElement.parentElement.parentElement.colSpan = 2;


// show only information section in the form


// hide the related section and the table below it.


document.getElementById(“crmFormNavSubareas”).parentElement.style.display = “none”;

document.getElementById(“crmFormNavSubareas”).parentElement.parentElement.previousSibling.style.display = “none”;


}

Hope it helps !


Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

14 thoughts on “JavaScript to hide left navigation from form in CRM 2011”

  1. Black – Berry phones employ a wide lineup of messaging options,
    including auto-text, auto-correct, text prediction, support
    for many languages, keyboard shortcuts, and push notifications for many systems including email,
    Facebook, Twitter, Myspace, and the ebay affiliate network; push instant messaging by way of Black
    – Berry Messenger. Check with your family members as well as
    acquaintances: In all probability your family or maybe contacts
    might be able to strongly recommend a couple of retailers that
    has to be a good idea searching for. If you want
    to make sure your car doesn’t deteriorate while you’re away,
    be sure to follow these five tips.

    Like

  2. Hi,

    I want to customize the left navigation panel in dashboard with default collapse as false.

    For example (My Work Place group should be in expended form and Customers group should be in unexpanded by default).

    I want only first group as expended form and other all has to be unexpanded. Can be do it with customizations.xml file. Please help me ASAP.

    Sunil Kumar

    Delhi

    Waiting for help…..

    Like

  3. /* This will remove the Left NAV items (Activities and History) that cannot be removed using the standard UI control. */

    function HideLeftNavActivities()
    {
    Xrm.Page.ui.navigation.items.get(“navActivities”).setVisible(false);
    Xrm.Page.ui.navigation.items.get(“navActivityHistory”).setVisible(false);
    }

    In case anyone is looking to remove those elusive Activity and History Left Nav items…

    Like

  4. Hi,

    Is it possible to remove the notes from Tab and put it into Related -> Common Left Navigation Group. As i have a 6 sections already in the form so, it is very long scroll to go from top to bottom, to save the space i am thinking to remove notes from Tab and put it into Left Nav. I know how to remove Notes and Activities. But i want to keep notes for this entity but i want to show it in Left Nav Related section.
    Is it possible at all.

    I am also looking for this solution from a long time.

    Thanks.

    Like

  5. Hi,

    I was wondering, can we make it as a collapsible, like hide/unhide .. not totally hide it.
    If user wants he can see or hide .. same feature like 2011 sections have.

    Please let me know. I am looking for this solution from a long time.

    Thanks.

    Like

    1. Hi,

      I used the first part of this and it worked (hiding the leftnav). However, my Ribbon has now also disappeared.

      Any ideas?

      Thanks,
      niraj

      Like

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s