Inside Activate
Web Forms and Wizards
Ribbon Button Extended Rights Or Conditions
3 min
this document explains how logical conditions are evaluated in ribbonbutton extendedrights, and how to implement or logic correctly overview ribbonbutton extendedrights control whether a ribbon action is available based on one or more evaluated rights understanding how these expressions are processed is important to ensure buttons appear or are enabled as intended default evaluation behaviour extendedrights expressions are evaluated left to right if multiple rights are specified without an explicit operator, the evaluation behaves as a logical and this means each right must evaluate to true evaluation stops as soon as a right evaluates to false the overall result is false if any condition fails using or logic or logic is supported by explicitly using the vertical bar (|) operator between conditions for example unpublished|!canorder in this example, the extendedrights condition evaluates to true if either of the following is true the item is unpublished the user does not have the canorder right summary ribbonbutton extendedrights default to and style evaluation or conditions are supported using the | operator explicit operators are required to avoid unintended access or visibility behaviour