Hi All,
Is there any supported way to pass dynamic value(label) of ribbon button as parameter to enable rule ?
As I have checked there is no crm parameter for retrieving button property.
Can anyone suggest supported way or unsupported way ?
If supported way, it will be better otherwise we have to manipulate the dom.
*This post is locked for comments
Hi Arun,
I believe button name will not change anytime so you can use Custom Rule and pass your hard coded string parameter over there .
function GetButtonName(buttonname) { if ((buttonname === 'ImportData') ) // do something }
For your requirement you can create a enable rule which satisfy for the multiple buttons and bind that enable rule to the respective button commands. You no need to pass the button label to it because the actual logic will be handled in the enable rule.
Hi Arun,
There is no CRM Parameter available for this so a possible work around could be have custom java script rule to implement your requirement.
Hi @Mahendra,
I just wanted to create one enable rule where I can pass button name or label name dynamically, so that I can add this rule with other button too. So, is there any way to pass dynamic label name to CRM parameter.
Hi,
What is your requirement do you want to enable disable based on specific label ?? you should be able to use custom js rule where you can check field but keep in mind to access field label there is no supported/direct way and return true/false to enable rule.
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,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156