Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Hide Close as won on opportunity record when there is no record in the Quote subgrid

(0) ShareShare
ReportReport
Posted on by 267

Hide Close as won on opportunity record when there is no record in the Quote subgrid. when the user added atleast 1 quote in the subgrid then the ribbon button should be visible. how can we do it?

*This post is locked for comments

  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at
    RE: Hide Close as won on opportunity record when there is no record in the Quote subgrid

    Hi ,

    You can achieve this functionality using enable rule on command of "Close as won".  First of all you need to use retrieveMultiple method to retrieve quote and if found you can return false.

    //Enable rule JS

    HideButton = function() {

    var count = retrieveFunction(); // Use service code to retrieve quotes

       if (count > 0) return true;

       else return false;

    }

  • Suggested answer
    Adrian Begovich Profile Picture
    1,025 Super User 2025 Season 1 on at
    RE: Hide Close as won on opportunity record when there is no record in the Quote subgrid

    Hi Varma,

    You can achieve this by customising the Close as Won button with the Ribbon Workbench for Dynamics 365 & Dynamics CRM.

  • Mahadeo Matre Profile Picture
    17,021 on at
    RE: Hide Close as won on opportunity record when there is no record in the Quote subgrid

    Hi..

    Yes, you can do it. you need to customize Close as Won button.

    You need to add enable rule to this button, and call JavaScript on enable rule which will get count of quotes associated with opportunity.

    Based on quote numbers you can able to show or hide buttons.

    mahadeomatre.blogspot.com/.../refresh-form-ribbon-to-show-hide-button.html

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans