Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Having an issue on defining multiple enable rules with the of ribbon work bench

Posted on by 12,070 Super User 2024 Season 1

Hi all

This is my custom button

3005.Button.jpg

I added orEnableRule with the of Ribbon Workbench as shown below: My First OrGroup ValueRule is working when my save field is equals to null. My button disable  at this value.

Button2.jpg

but my second OrGroup ValueRule is not working when my sent field value is "Sent" as shown below and my button is not disable at this value.

Button4.jpg

I am doing something wrong but I don't know what?. Please help to solve this issue.

Thank You

*This post is locked for comments

  • Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Having an issue on defining multiple enable rules with the of ribbon work bench

    Hi Nithya Gopinath

    No luck yet. After seeing your help document too.

    Thank You

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Having an issue on defining multiple enable rules with the of ribbon work bench

    Hi Abdul Wahab,
    When more than one enable rule is defined for a command definition, all of the enable rules must evaluate as true for the ribbon element to be enabled. All Enable rules provide an optional attribute to specify whether the default value of the rule is true or false and an optional InvertResult attribute to allow for returning a negative result when the item being tested returns true.

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

    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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans