web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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.

  • Mohammed Waseem Profile Picture
    382 on at

    Hi Gautam ,

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

    Thanks,

    Waseem.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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

    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 .

  • Mohammed Waseem Profile Picture
    382 on at

    Gautam ,

    On what event i will be adding the above code .

    Thanks,

    Waseem

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans