Text Scroll

You must welcome, Thank you for visiting my blog.

Search This Blog

Sunday, June 28, 2020

Form level error Notification and Hide BPF PreviousStage / SetActive Button in ms crm

Form Notification error
------------------------------------------------------------------------
function showNotificationOnFields() 
{
Xrm.Page.getControl("custm_importancetocustomer").setNotification("Any message")
}



Hide Previous Stage Button in BPF
-----------------------------------------------------------------
function hidePreviousStageButton(){ 
var hide = true;
var interval = null;
    interval = setInterval(function () {
        var element = parent.document.getElementById("stageBackActionContainer");
        if (element != null && hide == true) {
            hide = false;
            element.style.display = "none";
            clearInterval(interval);
        }
    }, 1000);
}



Hide SetActive Button in BPF
---------------------------------------------
function HideSetActiveButton(){ 
var hide = true;
var interval = null;
    interval = setInterval(function () {
        var element = parent.document.getElementById("stageSetActiveActionContainer");
        if (element != null && hide == true) {
            hide = false;
            element.style.display = "none";
            clearInterval(interval);
        }
    }, 1000);
}

No comments:

Post a Comment