Announcements
No record found.
Hi All,
I want to get the ribbon name/label on the button click, say we have custom button with drop down values, when we click on any one of the drop down values we need to get the selected button label.
*This post is locked for comments
Hi Kishor,
Unfortunately you can not customize OOB button (Disqualify) ribbon action. In that case you need to create custom button and pass the parameter on each type of action.
Goutam, we have created an custom button only, on click I need to get the label of the button, based on the selection of the drop down values we are validating some custom actions, say If I click Lost, the function I need to get the lost in the function similarly for the remaining ones
I believe the straight way to pass as a string parameter in the ribbon action , as the button name will not change. Go to ribbon workbench , click on the button and go to command action for each button and add parameter , pass string value with the hard coded button name there.
Directly it is not possible to pass function names dynamically. But I think you should be able to update a dropdown/Text field based on your dropdown button click and then you manage to achieve the required functionality either with Business Rule, Plugin or WF.
How about calling your js method and passing a string parameter so that your function will now which button is clicked ?
You can see list of the parameters here, https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/customize-dev/define-ribbon-actions
Check this post as a reference www.crmconsultants.co.uk/pass-parameter-from-crm-command-bar-button-with-javascipt
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
TNJ_CRM_Team 2