Tuesday, November 15, 2011

Hiding Tabs and Sctions in CRM 2011

Replaced the old code of  CRM 4.0
crmForm.all.tab1Tab.style.visibility = "hidden";
crmForm.all.tab1Tab.style.position = "absolute";

with

 Xrm.Page.ui.tabs.get(tabNumber).sections.get(sectionNumber).setVisible(true);
eg:

Xrm.Page.ui.tabs.get(1).sections.get(5.setVisible(true);
on tab 1 and section 5

No comments:

Post a Comment