locked
Hide the "Quote" button RRS feed

  • Question

  • Hi,
    I need to hide the Quote button in the Opportunity accroding to a condition in the onLoad of the Opportunity.
    How can i do this?Thanks in advance
    Wednesday, February 18, 2009 9:29 AM

Answers

  • Hi,
    This is what i used.

    document.all.navQuotes.style.display = "none";

    Thanks anyway
    • Marked as answer by ms_crm Wednesday, February 18, 2009 9:59 AM
    Wednesday, February 18, 2009 9:58 AM

All replies

  • Hi,

    Do you mean the "Quotes" link in the left navigation menu on the Opportunity form? If so, the following code should accomplish your task:

    var navGroup = document.getElementById("_NA_SFA");  
     
    forvar i = 0 ; i < navGroup.nextSibling.childNodes.length ; i++ )  
    {     
        var menuItem = navGroup.nextSibling.childNodes[i];     
     
        if( menuItem.childNodes[0].childNodes[1].innerText == "Quotes")  
            menuItem.style.display = "none";     

    I don't know which button other than the link you could be referring to, as there is no "Quote" button on the opportunity...

    I hope that helps.

    Regards,
    Kuba
    -- Kuba Skałbania, Netwise
    Wednesday, February 18, 2009 9:54 AM
  • Hi,
    This is what i used.

    document.all.navQuotes.style.display = "none";

    Thanks anyway
    • Marked as answer by ms_crm Wednesday, February 18, 2009 9:59 AM
    Wednesday, February 18, 2009 9:58 AM
  • Yes...this is working fine..for me also...
    Thursday, March 5, 2009 11:22 AM