I want create some Logic for showing/hiding button using DisplayRule\OptionSetRule
It definitely doesn’t work. Apparently problem is in comparing of StateCode’s value. I tried to use “No”, “no” - Doesn’t work. Button doesn’t display.
When I set InvertResult to true, button displays but problem is that in tested case StateCode is equal to 0
*This post is locked for comments
Thank You MANIKANTA CRM for resolve the problem, because I've been searching how to do and anybody have explained how to associated
here i used JS in enable rules to hide button based on my scenario
Hi we have to configure Enable rules in RW to show/hide button in form and that enable rule has to be attached with command and command has to be used with button.
Hi Peter,
Try using the FormStateRule instead of OptionSetRule.
See the links below.
https://community.dynamics.com/crm/f/117/t/153867
http://raju2565.blogspot.in/2014/11/form-state-rule-using-ribbon-work-bench.html
The OptionSetRule is designated as Internal use only, so you may not be able to make it work. What are you trying to achieve ? If you want to display a button based on the record's statecode, then you could use a FormStateRule
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