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.