Microsoft Dynamics CRM

{Tips and Tricks}Show/Hide Business Process Flow in CRM 2013 Form

Often, there is a case on CRM 2013 form, when we want to utilize the UI area for viewing details and have an ability to show/hide business process flow area:

Taking example of Sample opportunity Business process flow here:

clip_image002

We can click the arrow like this and the business process flow area collapses:

clip_image004

This is how it finally seems:

clip_image006

What if now I want to even hide this stuff and use the entire area? Something like(I am clicking the checkbox here on the form):

clip_image008

clip_image010

And when I move away from the checkbox:

clip_image012

The good fact about this approach is that if value of checkbox is saved, It is kind of sticky form view if checked on form load along with on change events. Now, the script:

function showHideBusinessProcessFlow()

{    if (Xrm.Page.getAttribute(“new_showbusinessprocessflow”).getValue() == true)

    {       $(“#header_process_d”).css(“display”, “block”);    }

    else    {           

  $(“#header_process_d”).css(“display”, “none”);

    }

}

Note: This is unsupported script and might break with future Microsoft updates.

Hope it helps!

Advertisements

1 thought on “{Tips and Tricks}Show/Hide Business Process Flow in CRM 2013 Form”

  1. Oh Boy, If you could have post this 3 months ago, i was looking for this customization… However, i achieved writing similar.

    Blog more with good stuffs and complex customizations 🙂

    Thanks.

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