title: Change the "New" button Quote subgrid
body: <p>The opportunity form as a quotes sub-grid. I am trying to hide the existing "New" button and create a custom one.  Hiding the existing button works like a charm. However, nothing I do seems to make the custom button appear.</p>
  
  <p>I have tried making the enable and visibility conditions as simple as just checking that the form is for an existing entity.  Nothing seems to work.</p>
  
  <p>Here's the XML for the quote.  Generated using Ribbon Workbench:</p>
  
  <pre><code>&lt;RibbonDiffXml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;CustomActions&gt;
      &lt;CustomAction Id="ntcp.quote.Button1.Button.CustomAction" Location="Mscrm.SubGrid.quote.MainTab.Management.Controls._children" Sequence="17"&gt;
        &lt;CommandUIDefinition&gt;
          &lt;Button Alt="$LocLabels:ntcp.quote.Button1.Button.Alt" Command="ntcp.quote.Command0.Command" Description="" Id="ntcp.quote.Button1.Button" Image32by32="/_imgs/ribbon/newrecord32.png" Image16by16="/_imgs/ribbon/New_16.png" LabelText="$LocLabels:ntcp.quote.Button1.Button.LabelText" Sequence="17" TemplateAlias="o1" ToolTipTitle="$LocLabels:ntcp.quote.Button1.Button.ToolTipTitle" ToolTipDescription="$LocLabels:ntcp.quote.Button1.Button.ToolTipDescription" ModernImage="New" /&gt;
        &lt;/CommandUIDefinition&gt;
      &lt;/CustomAction&gt;
      &lt;HideCustomAction HideActionId="ntcp.Mscrm.SubGrid.quote.AddNewStandard.Hide" Location="Mscrm.SubGrid.quote.AddNewStandard" /&gt;
    &lt;/CustomActions&gt;
    &lt;Templates&gt;
      &lt;RibbonTemplates Id="Mscrm.Templates" /&gt;
    &lt;/Templates&gt;
    &lt;CommandDefinitions&gt;
      &lt;CommandDefinition Id="ntcp.quote.Command0.Command"&gt;
        &lt;EnableRules&gt;
          &lt;EnableRule Id="ntcp.quote.EnableRule0.EnableRule" /&gt;
        &lt;/EnableRules&gt;
        &lt;DisplayRules&gt;
          &lt;DisplayRule Id="ntcp.quote.DisplayRule0.DisplayRule" /&gt;
        &lt;/DisplayRules&gt;
        &lt;Actions&gt;
          &lt;JavaScriptFunction FunctionName="ntcp_QuoteFromOpportunity" Library="$webresource:ntcp_/quoteFromOpportunity.js" /&gt;
        &lt;/Actions&gt;
      &lt;/CommandDefinition&gt;
    &lt;/CommandDefinitions&gt;
    &lt;RuleDefinitions&gt;
      &lt;TabDisplayRules /&gt;
      &lt;DisplayRules&gt;
        &lt;DisplayRule Id="ntcp.quote.DisplayRule0.DisplayRule"&gt;
          &lt;FormStateRule State="Existing" Default="true" /&gt;
        &lt;/DisplayRule&gt;
      &lt;/DisplayRules&gt;
      &lt;EnableRules&gt;
        &lt;EnableRule Id="ntcp.quote.EnableRule0.EnableRule"&gt;
          &lt;FormStateRule State="Existing" Default="true" /&gt;
        &lt;/EnableRule&gt;
      &lt;/EnableRules&gt;
    &lt;/RuleDefinitions&gt;
    &lt;LocLabels&gt;
      &lt;LocLabel Id="ntcp.quote.Button1.Button.LabelText"&gt;
        &lt;Titles&gt;
          &lt;Title description="Add New Quote" languagecode="1033" /&gt;
        &lt;/Titles&gt;
      &lt;/LocLabel&gt;
      &lt;LocLabel Id="ntcp.quote.Button1.Button.ToolTipTitle"&gt;
        &lt;Titles&gt;
          &lt;Title description="Add New Quote" languagecode="1033" /&gt;
        &lt;/Titles&gt;
      &lt;/LocLabel&gt;
      &lt;LocLabel Id="ntcp.quote.Button1.Button.ToolTipDescription"&gt;
        &lt;Titles&gt;
          &lt;Title description="Add New Quote" languagecode="1033" /&gt;
        &lt;/Titles&gt;
      &lt;/LocLabel&gt;
      &lt;LocLabel Id="ntcp.quote.Button1.Button.Alt"&gt;
        &lt;Titles&gt;
          &lt;Title description="Add New Quote" languagecode="1033" /&gt;
        &lt;/Titles&gt;
      &lt;/LocLabel&gt;
    &lt;/LocLabels&gt;
  &lt;/RibbonDiffXml&gt;
  </code></pre>
  
  <p>Any ideas?</p>