Tuesday, December 29, 2009

MSCRM: Hide Entity Nav Bar Items

Did you ever want to hide certain (or all) left nav bar items within a Contact or Account?

To hide left nav bar items inside a Contact, you have two options:

1. Remove all privileges linked to these items in the security roles

2. Add onLoad javascript to stop the items from displaying

The security role method is very straightforward, however if you have dozens of security roles, this can be time-consuming. To use javascript, see below:

Hide the 'Sub Contacts' menu option inside the Contact entity

* Open a Contact in Microsoft CRM
* With the Contact open, press Ctrl + N to open in a new window
* In Internet Explorer Click View > Source

When the HTML opens in Notepad, search for Sub-Contacts. When it is located, notice that just before the highlighted text you will see: id="navSubConts", write this down.

* Click Settings > Customization > Customize Entities
* Double-click the Contact entity > click Forms & Views
* Double-click Form (Main application form)
* In the right-hand pane, Click Form Properties
* Click OnLoad and Click Edit
* Paste the following Javascript in the box:

document.getElementById("navSubConts").style.display = "none";

* Check the Enable Event checkbox
* Click Save & Close > click Publish

Open a Contact in CRM and the Sub-Contacts menu option should be gone. This same method can be used to hide other entity menu options.

17 comments:

Kimberly McNeeley said...

in most nations, the reality of the matter is that graduation functions just happens at the college level. However today http://www.smartcustomwriting.net/ most nations and societies have the same services actually for the adolescent youngsters leaving the pre– school

mark ron said...

I like reading the post,it is very beneficial,you have good writing style.I am impressed to see your work.
rubber sheet in affordable packages buy them from http://ukrubbersheet.co.uk/

True Healing Self Healing said...

Hello
This site is very good site.Thanks for such a nice post . I found a lot of useful tips from this post.

Brazil luxury honeymoons said...

First of all i appreciate the author for taking the effort to share an article about a very good topic. This article throws light on the new film : In Between Black and White!!!. What surprises me is that my favorite star Zara Phillips. who is a singer, song writer, actor and author, is also acting in this.Brazil luxury honeymoons

stainless steel said...

i have noticed your all the things and try to follow it :)

texas web development said...

Their snowchains furthermore conservation ended up keenly offered amongst underscores. Adjunct instantly, Throughout i restrain handful gender of surface pin in antithesis to most of us idiom about our Canadian suture.texas web development

SoClean Lab Results said...

Now this time i am not fully know about the HTML because i newly start. I note your instructions own my book and start practic

GuardianBikes said...

hi
I am really inspire with your blog posts... Kept up and tell us more info about that

Anonymous said...

Kite Projects provides the best and cheap Bespoke Stainless Steel Handrails and Stainless Steel Ladders Provider in Uk. Call us now 01962 886290 to get information.vertical ladder

Cakengift said...


You can also buy all flavors cakes from here with free home delivery.
Midnight Cake Delivery
http://www.cakengift.in/blog/
Birthday Cake Delivery in Noida
Valentine Flowers

Cakengift said...



Occasions Made Special with Online Cake Delivery at Midnight.
Online Cake in Delhi
Online Cake in Noida
Online Cake in Faridabad

Cakengift said...


Enjoy the best cakes delivery in the comfort of your home.
Birthday Cake Delivery in Gurgaon
Valentines Day Gifts 2017

saame mark said...

Intermountain Nutrition is providing the best quality Intermountain Supplements - Vitamins, Weight Loss, Liquids, and Powders Manufacturer If you are looking for Private Label Supplements, Contact us to get a quote.2:1:1 BCAA Powder – Citrus Flavor

Thomas pedro said...

A learner is offered the sponsored Stafford bundle as indicated by his needs. The accumulated enthusiasm on the credit will be faltered while the understudy is as yet tutoring. By the by, the unsubsidized advance is not given contingent upon the necessities of the learner. The gathered enthusiasm on this sort of credit should be paid by the understudy. check cashing

flat icons said...

I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates.flat icons

marko said...

We were "up to our eyeballs" in bank obligation - at the same time juggling income from our occasional business. In spite of the fact that we had an extremely gainful organization with yearly offers of $2.7 Million, we soon understood that subsidizing our independent venture with obligation financing was gobbling up the greater part of our benefit. Cash Advance

marko said...

A trader advance is a business subsidizing technique, concocted particularly for dealers. "Entrepreneurs are continually searching for other options to customary bank credits. The is the ideal option," as expressed on the site for an organization that gives dealer advances. car title loans chicago