Function to show Business Process Area expanded on form

In CRM 2013 forms, Business Process Area is collapsed by itself during form type create. So we wrote explicit code on form load to achieve the same.

var formType = Xrm.Page.ui.getFormType();
var CREATEFORMTYPE = 1;

function onLoadBusinessProcessExpand() {
    var businessProcessArea = $(‘#processControlCollapsibleArea’);
    if (formType == CREATEFORMTYPE && businessProcessArea != null) {
        $(‘#processControlCollapsibleArea’).css({ display: “block” });
    }
}

 

onLoadBusinessProcessExpand function needs to be called on form load.
Hope it helps!