Microsoft Dynamics CRM

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!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s