Thursday, August 2, 2012

JS to Hide/Show CRM Tabs/Sections in MS CRM 2011



function HideShowSection(tabnumber, section, visible) {
    tabs = Xrm.Page.ui.tabs.get();
    sections = tabs[tabnumber].sections.get();
    sections[section].setVisible(visible);

}

function HideShowTab(tabnumber, visible) {
    Xrm.Page.ui.tabs.get(tabnumber).setVisible(visible);
}

No comments: