web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Mahadeo Matre Profile Picture
    17,021 on at

    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

  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    Hi Varma,

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

  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at

    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;

    }

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans