Monday, July 31, 2006

Hiding CRM navigation buttons

Within the current version of MS CRM, version 3.0, it is possible to hide
navigation buttons.

The javascript below gives an example for this. Put it in the Onload Event of the
entity you want to influence.

The Element ID's can be found via a simple trick:

Go to the form where you want to hide the buttons. Press Ctrl + N, this
will result that het current page will be re-openend in a new IE Window.

Within this Window you can view the page source code, via the menu options "View" "Source".

//..hide navigation

Hide( window.document.getElementById( "navProds" ) );
Hide( window.document.getElementById( "navRelationship" ) );
Hide( window.document.getElementById( "navOrders" ) );
Hide( window.document.getElementById( "navInvoices" ) );
Hide( window.document.getElementById( "navExistingProducts" ) );
Hide( window.document.getElementById( "navWriteInProducts" ) );

//..hide object function

function Hide( obj )
{
obj.style.visibility = "hidden";
obj.style.position = "absolute";
}

0 reacties: