web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Need help hiding "Close As Won" button using Ribbon Workbench when "Document Status" field = "Ready to Export"

(0) ShareShare
ReportReport
Posted on by

Hello,

I am trying to hide the "Close As Won" button using the Ribbon Workbench when "Document Status" field = "Ready to Export". However, I can't seem to get it to actually hide.

Below is what I have so far, which doesn't seem to be working:

0523.workbench.PNG

Any help would be greatly appreciated.  Thanks!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Pawar Pravin Profile Picture
    5,237 on at

    One thing I want to highlight here, you should have to use enable rule rather than creating display rule. Its better to use custom rule in enable rule instead of creating inside display rule.

  • Community Member Profile Picture
    on at

    Hi Pravin, thank you for your reply.  Should I just put a simple if statement in my enable rule?  Is there anything else I need to add?  I have not created these before.

  • Suggested answer
    Pawar Pravin Profile Picture
    5,237 on at

    You have to create custom rule inside enable rule where you can put if statement.

  • erhan.keskin Profile Picture
    2,253 on at
  • Community Member Profile Picture
    on at

    Is it possible to create a value rule or a different kind of rule rather than a custom rule?  I am not experienced with JavaScript so I am not sure how to create this rule.

  • erhan.keskin Profile Picture
    2,253 on at

    Hi,

    Would you mind checking these links, please? They might help you.

    ribbonworkbench.uservoice.com/.../121427-enable-disable-a-ribbon-button-dynamically-based-o

    I know it is for CRM 2011, however it would work for you.

    www.youtube.com/watch

    Regards,

  • Community Member Profile Picture
    on at

    Will a "value" rule work in this scenario even though my "Document Status" field is a text field?

  • erhan.keskin Profile Picture
    2,253 on at

    I didn’t test any text field for that type of purpose personally, however in the first link it uses the account number field which is a text field. So, I assume it would work for a text field.

  • Community Member Profile Picture
    on at

    I'm still having trouble getting the rule to work correctly.  I created a value rule under "Enable Rules", set "Invert Result" to true, Set the field to new_QW_DocumentStatus, and set the value to "Ready To Export". I also added the rule to the Mark As Won command. However, I notice the button is now not showing up regardless of whether or not the Document Status field is set to "Ready To Export". Any idea why this may be happening?

  • erhan.keskin Profile Picture
    2,253 on at

    Did you see this note? I think you are doing it on the HomePage?

    Note: Value rules cannot be used in Grid or HomePage ribbons. To implement similar functionality, you must create a javascript function to dynamically retrieve the data from the server and return true/false.

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans