Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Crm 2011 - Force All Tabs to Collapse

$
0
0

Im currently using this code:

// ONLOAD - COLLAPSE ALL TABS
function collapse() {
 var formtabs = Xrm.Page.ui.tabs.get();<o:p></o:p>

 for(var i informtabs) {
  var tab =
formtabs[i];
  var currentTabState = tab.getDisplayState();
  var newTabState = "";

  if (currentTabState == "expanded") {
     newTabState = "collapsed";
  }
  tab.setDisplayState(newTabState);

  }

}

Note:

This code currently collapses all my tabs onload of the form, but 1 tab still always expands.


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>