Hide the Navigation Pane items in MS CRM 2011

Hide Activities and Closed Activities in the Navigation Pane in MS CRM 2011 Form On load

function hideActivitiesAndClosedActivitiesInNavItems()
{
Xrm.Page.ui.navigation.items.forEach(function (item, index)
{
var itemLabel = item.getLabel();

if (itemLabel == “Activities” || itemLabel == “Closed Activities”)
{
item.setVisible(false);
}
});

}

You may use the above code to hide all navigation items like marketing , Audit History etc.

Make sure your function must call on Form onLoad event.

 

Regards,

Advertisements

Leave a Reply

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