Tuesday, September 1, 2015

How disable/unbind Business Process Flow Non Active Stages Click event through Javascript

In case of, we do not have MS CRM 2015 Update 1 then we can use below JavaScript function on Form Load event.


function UnbindBPFStageClickEvent() {
    $(".processStageContainer").unbind("click").on("click", function (event) {
        var that = $(this);
        if (!that.hasClass("unselectedStage")) {
            $("#processControlCollapsibleArea").animate({
                height: "toggle"
            }, 500, function () { });
        }
        else {
            that.blur();
        }
    });
}


Please note: It is an unsupported way to accomplish the task.