Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Hide finish button of business process flow which is shown when last stage is active .

(0) ShareShare
ReportReport
Posted on by 382

Hi ,

Can we hide the finish button of business process flow which is shown when last is active .

Thanks ,

Waseem

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Hide finish button of business process flow which is shown when last stage is active .

    I am not sure as I said earlier you could try to register the funcion "OnloadForm" in form onload event-

                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 
                        }
                }

  • Mohammed Waseem Profile Picture
    382 on at
    RE: Hide finish button of business process flow which is shown when last stage is active .

    Gautam ,

    On what event i will be adding the above code .

    Thanks,

    Waseem

  • Mohammed Waseem Profile Picture
    382 on at
    RE: Hide finish button of business process flow which is shown when last stage is active .

    Gautam ,

    The product owner says - when the last stage is active  , thats enough for him and he doesnt want to mark the process as finished .

    to avoid user confusion .

    Thanks,

    Waseem .

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Hide finish button of business process flow which is shown when last stage is active .

    Hi Waseem,

    May I know for what purpose you want to hide the Finish button?

    I have not tried this before,  press F12 and move the selector to the Finish button to get the id  and hide the button in registering function in below method. This is not supported at all.

    Xrm.Page.data.process.addOnStageSelected(myFunction);

    Xrm.Page.data.process.addOnStageChange(myFunction);

  • Mohammed Waseem Profile Picture
    382 on at
    RE: Hide finish button of business process flow which is shown when last stage is active .

    Hi Gautam ,

    Thanks for your reply .can you please provide bit more information how do we hide by accessing DOM .

    Thanks,

    Waseem.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Hide finish button of business process flow which is shown when last stage is active .

    Hi,

    There is no supported way to achieve this. And accordingly to me you should not hide it as it will inform the user that this is the last step.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Hide finish button of business process flow which is shown when last stage is active .

    Hi Mohammed ,

    Unfortunately there is no supported way to hide the finish button .

    You may try to hide accessing DOM but make sure this is completely not supported.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans