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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Enable/Disable ribbon Button

(0) ShareShare
ReportReport
Posted on by 3,315

Hi all,

I got one new question.

Is there any way to Enable/Disable ribbon button?

When I added Enable rule, its behaving Show/Hide. But in my requirement, button should show and based on certain condition it should Enable, or else it should be disable. Enable rule is dealing with Show/Hide.

Any suggestions for Enable/Disable button?

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Meena Kannan Profile Picture
    232 on at
    RE: Enable/Disable ribbon Button

    Hi Shivaram,

    We can't enable/disable ribbon buttons in supported way. We can do this in unsupported way through javascript.

  • Verified answer
    ScottDurow Profile Picture
    21 on at
    RE: Enable/Disable ribbon Button

    Indeed there is no way not disable command bar buttons- and please do not use an unsupported technique since this will not work on the new client interface.

  • Verified answer
    Rajkumar Rajaraman Profile Picture
    on at
    RE: Enable/Disable ribbon Button

    Not possible, It's an unsupported way

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at
    RE: Enable/Disable ribbon Button

    Whatever you see is by design, this was introduced with command bars, Command bars only render enabled buttons, so if your button is disabled it will be hidden. so better to educate your end users to expect hidden button instead of disable button.

    Hope it will help.

    Thanks

  • EmployeeOcta Profile Picture
    6 on at
    RE: Enable/Disable ribbon Button

    You can write custom rule using JavaScript to show and hide the button.

    also ones it's get enabled then also you will need functionality to run on clicking of this button. you can customize that command to work on click on that function.

  • Suggested answer
    Tushar2016CRM Profile Picture
    1,130 on at
    RE: Enable/Disable ribbon Button

    Instead of showing it as disabled you can handle the functionality through java script so that appropriate message is displayed to the user on click of the button.

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at
    RE: Enable/Disable ribbon Button

    You can create an Enable Rule based on a Custom Action (JavaScript), which will trigger the function when the command bar loads, and check the return value of your function to specify whether the button will be enabled/disabled.

    Enabled/Disabled buttons are either visible or hidden in CRM 2013 and after.

    Use Ribbon Workbench (by Scott Durow) to created your Enable Rule for the button.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans