Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

show/hide custom button on certain bpf stage

(0) ShareShare
ReportReport
Posted on by 110

Hi,

   I have a custom button for which i want to display it only on certain stages of BPF. Any suggestions?

*This post is locked for comments

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,477 on at
    RE: show/hide custom button on certain bpf stage

    This might work:

    1. Create a customrule in Ribbon Workbench (it would be one of the "enable rules"): 

    https://msdn.microsoft.com/en-us/library/gg309433.aspx

    http://www.develop1.net/public/rwb/ribbonworkbench.aspx

    2. Use process methods to determine the stage and to return true/false (to enable/disable that button.. it'll be hidden if it's disabled):

    https://msdn.microsoft.com/en-us/library/dn817878.aspx

    3. Add a handler for onStageChange (or onStageSelected):

    https://msdn.microsoft.com/en-us/library/dn817878.aspx#BKMK_EventHandlerManagement

    4. And a call to refreshRibbon in that method:

    https://msdn.microsoft.com/en-us/library/gg327828.aspx#BKMK_refreshRibbon

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans