web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Custom Rule for Ribbon Button using only 'Display Rule' excluding 'Enable Rule' in CRM 2011

(0) ShareShare
ReportReport
Posted on by

Hi,

I have two scenarios :-

1. Pass a value is 'not null' or 'null' : I have to implement this using 'Display Rule' excluding 'Enable Rule'  if I am using 'Value Rule' and passing the Field Value as 'null' I am not able to get the functionality .

N.B : Currently I am implementing this by adding extra flag .

2. Pass any custom Rule which is based on some Odata Queries : I have to implement this using 'Display Rule' but unfortunately it is not falling under any display Rules which CRM supports .

N.B : Currently I am implementing this by giving alert prior to ribbon action in form event to satisfy my condition .

 

Is there any solution for the same .Please help me for the same as adding flag time and again is not a good alternative .

Pls suggest for the same .Thanks in Advance . 

 

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Custom Rule for Ribbon Button using only 'Display Rule' excluding 'Enable Rule' in CRM 2011

    Pls suggest for the same if there is any alternatives...

    Thanks in Advance

  • Verified answer
    ScottDurow Profile Picture
    21 on at
    RE: Custom Rule for Ribbon Button using only 'Display Rule' excluding 'Enable Rule' in CRM 2011

    Hi,

    Value Rules do seem to work slightly differently with DisplayRules compared to EnableRules.

    Try using the Default = "true" - this will return true if the ValueRule can't be evaluated because the value is null.

       <ValueRule Field="new_optionsetabc" Value="" Default="true" />

    Custom Javascript rules will not work with Display Rules - again you will need to use an Enable Rule.

    It is also worth noting that Value Rules changed slightly with CRM 2013 - see ribbonworkbench.uservoice.com/.../276684-differences-between-crm2011-and-crm2013-ribbon-com

    Hope this helps,

    Scott

  • Suggested answer
    ScottDurow Profile Picture
    21 on at
    RE: Custom Rule for Ribbon Button using only 'Display Rule' excluding 'Enable Rule' in CRM 2011

    Hi,

    Value Rules do seem to work slightly differently with DisplayRules compared to EnableRules.

    Try using the Default = "true" - this will return true if the ValueRule can't be evaluated because the value is null.

       <ValueRule Field="new_optionsetabc" Value="" Default="true" />

    Custom Javascript rules will not work with Display Rules - again you will need to use an Enable Rule.

    It is also worth noting that Value Rules changed slightly with CRM 2013 - see ribbonworkbench.uservoice.com/.../276684-differences-between-crm2011-and-crm2013-ribbon-com

    Hope this helps,

    Scott

  • Suggested answer
    ScottDurow Profile Picture
    21 on at
    RE: Custom Rule for Ribbon Button using only 'Display Rule' excluding 'Enable Rule' in CRM 2011

    Hi,

    Value Rules do seem to work slightly differently with DisplayRules compared to EnableRules.

    Try using the Default = "true" - this will return true if the ValueRule can't be evaluated because the value is null.

       <ValueRule Field="new_optionsetabc" Value="" Default="true" />

    Custom Javascript rules will not work with Display Rules - again you will need to use an Enable Rule.

    It is also worth noting that Value Rules changed slightly with CRM 2013 - see ribbonworkbench.uservoice.com/.../276684-differences-between-crm2011-and-crm2013-ribbon-com

    Hope this helps,

    Scott

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans