Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Is there a way to hide the finish button in a business process flow?

Posted on by 390

HI have a requirement to hide the finish button (label) from a business flow, based on a the current user's role. what's the best possible way can this be achieved?

Thanks 

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is there a way to hide the finish button in a business process flow?

    Hi,

    There is a way to do that by using a web resource retrieving the information of the BPF into it and hide/show button/s. and you can call the web resource once on a js file once the condition is met(based on the role on your case). Bellow is a link on how you can do it.

    kishoredhanekula.com/.../

    I hope it helps.

  • Victor Onyebuchi Profile Picture
    Victor Onyebuchi 390 on at
    RE: Is there a way to hide the finish button in a business process flow?

    gdas I wanna use the below:

    function OnloadForm()
                {
                    Xrm.Page.data.process.addOnStageSelected(onchangeStage);
    
                    Xrm.Page.data.process.addOnStageChange(onchangeStage);
                }
    
                function onchangeStage()
                {
                    var stageName = Xrm.Page.data.process.getSelectedStage().getName().toString().toUpperCase();
                  
                    if(stageName == "LAST STAGE NAME")
                    {
                        //Get the button/div id using browser F12 selector 
                        if(buttonid ! = null)
                        {
                        //Maike the id Display  none 
                        }
                }

    but getting the ID, is it the same way like: getcontrol("the id")?]
  • Victor Onyebuchi Profile Picture
    Victor Onyebuchi 390 on at
    RE: Is there a way to hide the finish button in a business process flow?

    @Goutam Das       what about disabling it or graying it out?

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Is there a way to hide the finish button in a business process flow?

    Unfortunately there is no supported way to hide finish button in BPF.

    You can also refer old thread if you still have any doubt.

    community.dynamics.com/.../can-you-hide-finish-button-on-business-process-flow

    community.dynamics.com/.../hide-finish-button-of-business-process-flow-which-is-shown-when-last-stage-is-active

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: parsing "/forums/thread/?redirectedFrom=https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/184046/using-aif-to-import-vendors-error-document-does-not-support-the-axdirpartytable-class)" - Too many )'s.