Announcements
No record found.
Hi All,
I have an issue where I need to hide a OTB button based on a free text field containing data.
My experience with the Ribbon Workbench is limited and although I have found some great guides online for conditional hiding, I can't find one that fits what I need.
So basically we have the Case Entity and need to hide the closure button until a certain multiple line of text field is completed.
Any help would be greatly appreciated
Cheers
Sam
Hello,
I believe that's what you need - ribbonworkbench.uservoice.com/.../121427-enable-disable-a-ribbon-button-dynamically-based-o
Hi Andrew,
Is this still valid as this is from CRM 2011?
Sam,
Ribbon (in fact Command Bar) did not get breaking changes since 2011 so the post is still relevant.
Hi Sam,
Based on the field has value or not, the button will be visible or disabled.You can achieve it with the help of ‘ValuRule’ of enable rule in ribbon workbench.
For example, I want to hide Save&Close button in Contact based on text Muti text field.
Here are steps.
1.write JS and add it as web resource to onChange event of form.
2.Go ribbon workbench
(1) On form tab, right-click button and select custom command.
(2) Add a new enable rule and click it to add step ‘ValueRule.
(3) fill ‘ValueRule’ as follow shown:
(4) Click command to add enable rules that just add.
(5) Publish it.
3.Test.
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
Thank you, I'll test this today and let you know.
Hi Partner,
Has the problem been solved? Any updates?
Please click Yes under "Did this answer your question?" to close this thread.
Thanks.
Thank you very much Leah Ju, it works perfectly!
Welcome.
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 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
NeerajPawar 31
Tom_Gioielli 30 Super User 2026 Season 1
Eugen Podkorytov 14