title: How To Remove Display Rule From a Ribbon Command in CRM Online?
body: <p>I have a command for a button defined as follows:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;CommandDefinition Id="new.lead.CreditCheck.Command"&gt;
      &lt;EnableRules&gt;
          &lt;EnableRule Id="new.lead.CreditCheck.EnableRule" /&gt;
      &lt;/EnableRules&gt;
      &lt;DisplayRules&gt;
          &lt;DisplayRule Id="new.lead.CreditCheck.DisplayRule" /&gt;
      &lt;/DisplayRules&gt;
      &lt;Actions&gt;
          &lt;JavaScriptFunction FunctionName="new.LeadDynamic.creditCheck" Library="$webresource:new_Lead_dyn.js" /&gt;
      &lt;/Actions&gt;
  &lt;/CommandDefinition&gt;
  </code></pre>
  
  <p>If I go and remove the Display Rule from the command, (but keep the actual Display Rule definition) it looks like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;CommandDefinition Id="new.lead.CreditCheck.Command"&gt;
      &lt;EnableRules&gt;
          &lt;EnableRule Id="new.lead.CreditCheck.EnableRule" /&gt;
      &lt;/EnableRules&gt;
      &lt;DisplayRules /&gt;
      &lt;Actions&gt;
          &lt;JavaScriptFunction FunctionName="new.LeadDynamic.creditCheck" Library="$webresource:new_Lead_dyn.js" /&gt;
      &lt;/Actions&gt;
  &lt;/CommandDefinition&gt;
  </code></pre>
  
  <p>I get an error when attempting to import (attempted to use the Ribbon Workbench and got the same error as well)</p>
  
  <blockquote>
    <p>The ribbon item 'new.lead.CreditCheck.Command' is dependent on
    .</p>
  </blockquote>
  
  <p>I'm attempting to remove the dependency, but apparently I can't remove it since it exists!  What am I missing?</p>