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)

Call javascript on click of Next button of BPF.

(0) ShareShare
ReportReport
Posted on by

Hi,

I need to call the javascript file/function when the next button of BPF is clicked. My requirement is that when I click on Next button, I should get the current active stage. For example, when I move from Qualify to Develop stage by clicking the Next button, I should get the current active stage i.e. "Develop" in javascript variable. I want to hide/show fields depending on the current active stage.

Any help is greatly appreciated.

Thanks.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Here is how you can handle "Next" button click - msdn.microsoft.com/.../gg334481.aspx

    Regarding getting of previous Stage - you will have to store it as a script variable during onload. Good luck.

  • Verified answer
    Gopalan Bhuvanesh Profile Picture
    11,401 on at

    Hi

    You have to use:

    Xrm.Page.data.process.addOnStageChange(<function Name>);

    Please refer the following:

    eatsleepcrm.wordpress.com/.../scripting-on-business-process-flows-addonstagechange-addonstageselected

  • Community Member Profile Picture
    on at

    Thanks for your help...

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