ttajic
8/11/2015 - 11:00 AM

Show/Hide CRM form section

Show/Hide CRM form section

var adacta = adacta || {};

adacta.showHideSection = function (tabName, sectionName, isVisible) {
  var tab = Xrm.Page.ui.tabs.get(tabName);
  if (tab !== null) {
    var section = tab.sections.get(sectionName);
    if (section !== null) {
      section.setVisible(isVisible);
    }
  }
}