Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to set multiple Enable Rule for any button of Ribbon using Ribbon Workbench 2016?

Posted on by Microsoft Employee

Hi,

I want to set 2 Enable Rule on 1 button. How can I set that? I have tried but it behave weird. 

I have following Enable Rules:

1- CustomRule: This will return value from JavaScript(.js) in True or False.

2- SelectionCountRule: This will show button if at least one record is selected.

If #1 is false, it should not check for #2. Currently, it execute #2 even #1 is False.

Is there any sequence of execution or both rule will be apply? I can set sequence if required. 

Please guide.

EnableRule.png

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to set multiple Enable Rule for any button of Ribbon using Ribbon Workbench 2016?

    Hi,

    The way you  have added is correct. if you have more than one rule then all will execute one by one in the order they have added.

    In your scenario, rule 1 is executing first and the rule 2. I dont think you can have any link between the two.

    Hope this helps

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans