Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Hide out of box ribbon button on a specific entity form

(0) ShareShare
ReportReport
Posted on by 298
Hello Community,
 
Does anyone know if and how we could hide or disable an out of box ribbon button on a particular entity form? I assume we would use the Ribbon Workbench to do that, but how could we do this for one particular form, and not all forms?
 
Thanks.
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    Hide out of box ribbon button on a specific entity form
    Hi Partner,
    For one particular form?
    We knew that we can switch different forms when we open one record.
    Do you mean just switching to a specific form to hide the button?
    If so, you can use js code and Ribbon Workbench to hide button based on form.
    1.Js code
    (1)Return current form label:
    function hideButton(context)
    {
        var flag=false;
        var formItem = formContext.ui.formSelector.getCurrentItem();
        var formLabel = formItem.getLabel();
        if(formLabel == "Account")//particular form labe
        {
           flag = true;
        }
        return flag; 
    }
    2.Using Ribbon Workbench--Enable Rule:CustomRule.
    Like this:
    Maybe you can refer to the following link for detailed steps.

    I hope you can verify my answer if it helps you! If you have any questions, please feel free to contact me.
    Regards,
    Leah

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... 293,233 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans