Great code to show/hide a section inside a MSCRM 4.0 form:
http://mscrm4ever.blogspot.com/2008/08/show-hide-crm-form-section.html
function OnCrmPageLoad()
{
//Hide the Second Section in the first Tab
ToggleSection( 0 , 1 , "none" /* "inline" */);
}
// Tabs and Section Collections are zero based
function ToggleSection( tabIndex , sectionIndex , displayType )
{
var sec = document.getElementById( "tab" + tabIndex );
sec.childNodes[0].rows[ sectionIndex ].style.display = displayType;
}
//Entry Point
OnCrmPageLoad();
Recent Comments