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 !

Advertisement

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

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

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

  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,

    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

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

Please 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 )

Facebook photo

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

My Trial

It is my experience timeline.

Power⚡Thomas

Sharing my knowledge and experience about the Microsoft Power Platform.

Arpit Power Guide

a guide to powering up community

Welcome to the Blog & Website of Paul Andrew

Technical Leadership Centred Around the Microsoft Data Platform

Deriving Dynamics 365

Deriving Solutions and features on Power Platform/Dynamics 365

The CRM Ninja

Thoughts & musings from a Dynamics 365 Ninja!

D CRM Explorer

Learn about Microsoft Dynamics CRM Power Platform customization and implementation and other cool stuffs

Stroke // Jonas Rapp

I know pre-stroke. I will improve who I was.

Power Melange

Power Melange By Shalinee

Clavin's Blog

Power Automate - Power Apps - SharePoint Online - Azure - Nintex - K2 - Artificial Intelligence

Sat Sangha Salon

An Inquiry in Being

The Indoencers

The Influencers & Influences of Indian Music

Monika Halan's blog

Hand's-free money management

D365 Demystified

A closer look at Microsoft Dynamics 365.

Microsoft Mate (msftmate) - Andrew Rogers

Experienced consultant primarily focused on Microsoft Dynamics 365 and the Power Platform

Knowhere365

Specific topics by Django Lohn on the whole Microsoft365 Stack

Manmit Rahevar's Blog

One Stop Destination for Microsoft Technology Solutions

MG

Naturally Curious

Brian Illand

Power Platform and Dynamics 365

Steve Mordue MVP

A Microsoft Business Applications MVP

Subwoofer 101

Bass defines your home theater

SQLTwins by Nakul Vachhrajani

SQL Server tips and experiences dedicated to my twin daughters.

Everything D365

Discovering Azure DevOps and D365 Business Applications

Tech Wizard

Lets do IT Spells

XRM Tricks (Power Platform & Dynamics CRM )

Power Platform & Dynamics CRM

CRM TIPS BY PRM

Mail to crmtipsbyprm@gmail.com for queries and suggestions

nijos.dev

Giving back to the community what I have learned

xrm CRM Dynamics

Dynamics CRM Technical & Functional Info

Dynamics 365 Blogs - Explained in unique way

Sometimes you need to look at things from different perspective.

CRM Keeper

Dynamics 365 Customer Engagement, CRM, Microsoft CRM, Dynamics CRM

EVOLVED365

Step into the world of a Dynamics 365 Consultant

Dianamics PCF Lady

Diana & Dynamics 365 & Power Platform

%d bloggers like this: