Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

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
    gdas 50,085 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
    Mohammed Waseem 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
    Mohammed Waseem 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
    gdas 50,085 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
    Mohammed Waseem 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
    RaviKashyap 55,410 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
    gdas 50,085 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

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans