Display rule - ValueRule introduction

 Display rule in Ribbon Workbench - show or hide a ribbon button based on the value of a field on the record. 


Sometimes, we need to show or hide a ribbon button based on the value of a field on the record. 

Then, we need to set up its display rule. If using Ribbon Workbench, you may follow below introduction to set it up.

Here's the introduction to all settings in different scenarios:

  • When the field value matches the Value in the ValueRule: The rule evaluates to "True", meaning the condition is met. The button is displayed because the outcome of the rule is "True" and InvertResult is "False" (so we don't invert the "True" outcome).
  • When the field value does NOT match the Value in the ValueRule: The rule can still be evaluated, but it evaluates to "False", meaning the condition is not met. The button is not displayed because the outcome of the rule is "False" and InvertResult is "False" (so we don't invert the "False" outcome).
  • When the field does not exist or an error occurs during evaluation: The rule cannot be evaluated and so the Default value is used. If Default is "False", the rule is considered to evaluate to "False". The button is not displayed because the outcome (based on Default) is "False" and InvertResult is "False" (so we don't invert the "False" outcome).

So in all of these scenarios, with Default "False" and InvertResult "False", the button will only be displayed when the value in the field exactly matches the Value specified in the ValueRule.

After display rule created, just remember to add it to the command to make it work.



No comments:

Post a Comment