Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to Hide Button in Ribbon Workbench with CRM Dynamics 365

(0) ShareShare
ReportReport
Posted on by

Hello,

I had created button -"Reopen" button in Appointment Entity. Whenever user wants to open closed appointments or closes the appointment by mistake-> this button works best. But, after opening the appointment still i'm able to see reopen button on the form which doesn't make sense?

I had inserted button on Form Page

I had tried using display rules on button by ValueRule --> its not working

with enable rules --> its also not working

353148.1.PNG

Can anyone help me in this ?

Thanks

*This post is locked for comments

  • Suggested answer
    RE: How to Hide Button in Ribbon Workbench with CRM Dynamics 365

    this is what i was looking for, it works!!

    in my case, it also workfs with statuscode, i had one status that belongs with inactive statecode

    so Field = statuscode, Value = 2 did also the requirement

    thank you

  • Suggested answer
    Samfa Profile Picture
    Samfa 20 on at
    RE: How to Hide Button in Ribbon Workbench with CRM Dynamics 365

    If you want re-open already completed appointments which are now read-only status, you don’t need additional a custom button or write a code. You can reuse the standard activate button which is by default visible, when the appointment is canceled. To make this button visible, every time the record is in read-only status, execute the following steps.

    1. Load the appointment entity into Ribbon workbench
    2. right click on Activate button and select customized command
    3. under Display Rules -> Mscrm.PrimaryIsInactiveForAppointment - > Disply Steps -> right click on ValueRule and Delete
    4. Click on Publish button to save the ribbon change
  • Inogic Profile Picture
    Inogic 438 on at
    RE: How to Hide Button in Ribbon Workbench with CRM Dynamics 365

    First you need to check that you have added enable rule to command.

    And you need to set statecode=2 (Cancelled). So your reopen ribbon button will display only on cancelled Appointment form.

    You can see below screenshot:

    7178.n.jpg

    Hope this will help you.

     

    Thanks !

  • Suggested answer
    Alagunellaikumar Profile Picture
    Alagunellaikumar 6,210 on at
    RE: How to Hide Button in Ribbon Workbench with CRM Dynamics 365

    Hi

    You have to use enable rule please refer below URL

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

    ALso apply Xrm.Page.ui.refreshRibbon(); to make the changes immediet effect

  • Suggested answer
    pavanmanideep Profile Picture
    pavanmanideep 1,329 on at
    RE: How to Hide Button in Ribbon Workbench with CRM Dynamics 365

    Hi Deepthi,

    You could use a ValueRule in a Display Rule that you set dynamically using JavaScript and then refresh the ribbon using

    function refreshRibbonOnChange()

    {

       Xrm.Page.ui.refreshRibbon();

    }

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

    community.dynamics.com/.../119418

    Hope this helps..

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans