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 286
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.
Categories:
  • 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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,860 Test role Public

#2
Ludwig Reinhard Profile Picture

Ludwig Reinhard Microsoft Employee

#3
Martin Dráb Profile Picture

Martin Dráb 225,155 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans