Hello
I want to show a button only when
and this is AND condition not OR
mean when field value is "abc" and javascript function return true
How can i do this
because enable rule have only OR condition not AND
Thanks
*This post is locked for comments
Yes ur right thanks for detail answer and information
Oh Yes i forgot this.
why not put the field value check inside the JS function as well?
Hi,
this tells us differently:
https://msdn.microsoft.com/en-us/library/gg334682.aspx
>> Control when ribbon elements are enabled
Enable rules are intended to be re-used. By defining them with rule definitions, you can use the same enable rule for many command definitions. 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. <<
Are you sure the conditions are right in your case?
Cheers,
Andreas
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156