Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Disable ribbon button once clicked using javascript

(0) ShareShare
ReportReport
Posted on by 44

Hi all I'm trying to disable a ribbon button using JavaScript please suggest. 

*This post is locked for comments

  • Suggested answer
    Siva L Profile Picture
    Siva L 40 on at
    RE: Disable ribbon button once clicked using javascript

    I assume you are doing this in an Entity form. In that case,

    1. Create a boolean attribute in that entity and add on the form.
    2. On the first click of the button, set the boolean value and save the record.
    3. Use Enable/Disable rule of ribbon based on the boolean value.
  • erhan.keskin Profile Picture
    erhan.keskin 2,253 on at
    RE: Disable ribbon button once clicked using javascript

    Hi,

    Download "Ribbon Workbench" and import the solution.

    https://www.develop1.net/public/rwb/ribbonworkbench.aspx

    And apply "EnableRule" to the button

    https://ribbonworkbench.uservoice.com/knowledgebase/articles/121427-enable-disable-a-ribbon-button-dynamically-based-o

    Regards,

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans