Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Hiding the 'Next Stage' button on a BPF

Posted on by 240

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?

  • Suggested answer
    yassin sayed Profile Picture
    yassin sayed 85 on at
    RE: Hiding the 'Next Stage' button on a BPF

    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);

    }

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Hiding the 'Next Stage' button on a BPF

    Hi Aneeqa Pervaiz,

    This topic explains how to hide the Next Stage button on a business process flow.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans