Hello.
I have a requirement to hide the 'Next Stage' button on the BPF after a certain stage has been reached. How can I achieve this?
Hello.
I have a requirement to hide the 'Next Stage' button on the BPF after a certain stage has been reached. How can I achieve this?
Try the below it work as expected :)
function HideSetAcgtiveButton(executionContext) {
var formContext = executionContext.getFormContext();
formContext.data.process.addOnStageSelected(onStageClicked);
}
function onStageClicked(executionContext) {
var formContext = executionContext.getFormContext();
var hide = true;
var interval = null;
interval = setInterval(function () {
var element = parent.document.getElementById("MscrmControls.Containers.ProcessStageControl-businessProcessFlowFlyoutFooterContainer");
if (element != null && hide == true) {
hide = false;
element.style.display = "none";
clearInterval(interval);
}
}, 10);
}
Hi Aneeqa Pervaiz,
This topic explains how to hide the Next Stage button on a business process flow.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156