Notifications
Announcements
No record found.
Hi there all.I want to hide some option set value from disqualify button.I can do this with any field on the form with simple JS.But in ribbon I do now know how to do this.I googled, but did not found any similar issue.issue is this : I have some option set values in disqualify button of lead(which is in ribbon) that are not necessary any more.I can not delete them, because my history and report will destroy.So I need to hide them, But they are in ribbon and I do not know how to access that.Note that I am aware how to work with ribbon workbench.thanks
Hi,
You can do this with Ribbon Workbench by removing the populate query command and adding only your buttons.
1. Select the Disqualify button (name: Mscrm.Form.lead.DisqualifyLeadAs.UCI)2. Right click => Customize Button3. Remove the PopulateQueryCommandCore4. Drag and drop a Menu section from the Toolbox to the Disqualify button5. Drag and drop a Button from the Toolbox to the Menu section6. For each Button: 6.1 In Id, set the status code. Eg: 4 for lost. The associated command uses this id to change the status code. 6.2 Set the Label, Alt, ... 6.3 Set the ModernImage to a white space (" ") to have no image displayed. 6.4 Set CommandCore to Mscrm.Form.lead.DisqualifyAs7. Publish
Example:
Result:
Have you been able to try this solution?
If my answer helped you, please mark it as answer.
Thank you for your reply.
I followd this thread and find a way.
@Andrew Butenko answer's solves the problem. In his youtube video, he shows how to do this. According to the video, in the first function he writes; he uses xml to populate the flayout. But you can do this via ribbonworkbench visual tools and add your buttons to flayout menu section. there is no need to write the first function. But to do this you must set your command to each button you add.Also your answer is a solution in situation that we do not hidden the disqualify button and works on the main disqualify button. But I actually change my way. I write a WorkFlow that in it's condition I check the satusreason and It's trigger is on statusreason. When the record goes to that special statusreason, I stop the workflow with status of canceled with a message that : This status is not valid anymore.
xml
flayout
ribbonworkbench
WorkFlow
satusreason
statusreason
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 74 Super User 2025 Season 2
Daniyal Khaleel 32 Most Valuable Professional
Gerardo RenterÃa Ga... 31 Most Valuable Professional