Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Can the following quick create button highlighted in yellow in OPEN OPPORTUNTITIES grid in the Account page be hidden or not made clickable

Posted on by 167

Can the following quick create button highlighted in yellow in OPEN OPPORTUNTITIES grid in the Account page be hidden or not made clickable824260.Capture.PNG

*This post is locked for comments

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Can the following quick create button highlighted in yellow in OPEN OPPORTUNTITIES grid in the Account page be hidden or not made clickable

    Hi ,

    Here is the details steps you need to follow - 

    - Add below code in a JS web resource .

    Make sure you write enable rule like below so that , the button will be hide only for account subgrid - 

    function HideOpportunitySubGridButton() {
        var entityType = Xrm.Page.data.entity.getEntityName();
        if (entityType == "account") {
            return false;
        }
        else {
            return true;
        }
    }

    - Create one solution and include the Opportunity entity.

    - Open Ribbon workbench and select the solution.

    - Select the Add New button under subgrid area and click on customize button.

    - Find the command and click on Add new enable rules.

    - Select the web resource and put the JS  function name above mentioned.

    - Select Default true and invert true.

    - Publish

    Hope this  helps.

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Can the following quick create button highlighted in yellow in OPEN OPPORTUNTITIES grid in the Account page be hidden or not made clickable

    You can refer this thread as well-

    community.dynamics.com/.../864213

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Can the following quick create button highlighted in yellow in OPEN OPPORTUNTITIES grid in the Account page be hidden or not made clickable

    Hi,

    remember while configuring the enable rule and display rule, check the current entity is "Account" only proceed. Else other entities with this subgrid will get affected too.

    You can refer below video on how to configure it.

    www.youtube.com/watch

  • Verified answer
    Rajesh Chungath Profile Picture
    Rajesh Chungath 465 on at
    RE: Can the following quick create button highlighted in yellow in OPEN OPPORTUNTITIES grid in the Account page be hidden or not made clickable

    Please use ribbon workbench and configure hide show rule

    Please download using below link

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

    A tutorial is available from https://ribbonworkbench.uservoice.com/knowledgebase/articles/71374-1-getting-started-with-the-ribbon-workbench

    You can also call a java-script function if required any custom logic

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans