Dynamically Displaying a button on a ribbon RRS feed

  • Question

  • I have a custom button that had two display rules based on a value on two fields on the form.

    If Field A = Open and Field B = Active the button displays for everyone.

    I want to keep that rule but combine it so that if the above is true OR the below is true the button will display for selected users who have delete privileges.

    If Field A = Not Open and Field B = Not Active

    and user has Delete Privilege globally on entity


    If Field A = Another value and Field B = Another Value

    and user has delete privilege globally on entity.

    I'm basically trying to combine one scenario (the first) where the button will always display combined with OR if the remaining scenarios are true then user logged in with delete privilege on the entity will see the button (normal user would not).

    Can you create multiple display rules and use the OrRule between them or would you create one rule definition and combine the OrRule there?


    Tuesday, July 9, 2013 3:21 PM

All replies

  • Hi Robert,

    There isn't any reason why you can't combine you rules using the OrRule as long as they each work correctly on their own.

    Perhaps you could post your RibbonXml and we'll take a look.



    Scott Durow
    Blog www.develop1.net    Follow Me
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Wednesday, July 10, 2013 4:20 PM