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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Ribbon workbench multiple display rules

(0) ShareShare
ReportReport
Posted on by 54

Hi All,

I want to hide a custom button based on the status and status reason. I am using ribbon workbench to show this button if status is won or closed. Here are the conditions-

2020_2D00_11_2D00_17_5F00_20_2D00_49_2D00_40.png

To this I would like to add another condition - show this button if (status is won) or (status is closed and status reason is not closed revision). I added in the new status reason condition to the display rules above but doesn't seem to be working.

Any suggestions?

Thanks!

I have the same question (0)
  • Suggested answer
    cloflyMao Profile Picture
    25,210 on at

    Hi SR11,

    If you want to use custom rules, you should use "Enable rules" instead, because it is more like "client side" rules, while display rules are more like "server side" rules.

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/247872/ribbon-enable-rules-display-rules

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/286323/difference-between-display-and-enable-rules

    Regards,

    Clofly

  • SR11 Profile Picture
    54 on at

    Hi Clofy,

    I added the conditions in enable rules but still do not see the expected results. I would like to show a button if statecode is 2 OR statecode is 3 and statuscode is not 7. Here is the screenshot-

    What am I doing wrong?

  • SR11 Profile Picture
    54 on at

    pastedimage1605723593226v1.png

    Screenshot

  • cloflyMao Profile Picture
    25,210 on at

    Hi SR11,

    Let us take Industry field of Account as example: I want to show the button when the industry equals to the second and third option.

    1. The meaning of True/False is contrast to our understanding.

    True: hide the button.

    False: show the button.

    pastedimage1605767124913v2.png

    2. After created the "enabled rule", we need to create a command to save the "enabled rule".

    pastedimage1605767265616v3.png

    3. Finally, we need to apply the command to our custom button.

    pastedimage1605767338535v4.png

    Test:

    The button will only display when option 2 and option 3 is selected, 

    pastedimage1605767420128v5.png

    pastedimage1605767476428v6.png

    However, the button will be shown or hidden only after the record is saved.

    In addition, you could also refer to following tutorial:

    https://blog.magnetismsolutions.com/blog/adammurchison/2017/10/13/how-to-use-enable-rules-in-dynamics-365-with-the-ribbon-workbench

    Regards,

    Clofly

  • SR11 Profile Picture
    54 on at

    Thank you for the detailed response.

    To give a little bit of background, I already have a rule in place that successfully enables "Custom" button when the Quote status is Won or Lost, i.e. when statecode equals 2 or 3. The screenshot of this is in the original post.

    What I am not able to do is show the button when Quote status is Won or Lost AND status reason is not Revision. I tested with just status reason (statuscode = 7) as the only condition but that did not work. I am unable to identify why that particular field is not working.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 73 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans