Microsoft Dynamics CRM 2011 – Hide Areas of a Form
Views (3)
These code snippets will hide specific areas of the Form.
// Toggle the Ribbon Toolbar to Show/Hide (same as clicking the show/hide Ribbon button) window.top.document.getElementById("minimizeribbon").fireEvent("onclick"); // Hide the Ribbon Toolbar and move the form Content area to the top of the window. window.top.document.getElementById("crmTopBar").style.display = "none"; window.top.document.getElementById("crmContentPanel").style.top = "0px"; // Move Form Content area up to top of window, initial style.top is 135px // Hide Left Hand Nav bar / pane document.getElementById("crmNavBar").parentElement.style.display = "none"; document.getElementById("tdAreas").parentElement.parentElement.parentElement.parentElement.colSpan = 2; // Hide the Breadcrumb and Record Set Toolbar document.getElementById("recordSetToolBar").parentElement.style.display = "none"; // Hide the Form Footer Bar document.getElementById("crmFormFooter").parentElement.style.display = "none";
This was originally posted here.
*This post is locked for comments