title: How to hide a section in dynamics crm 2011
body: <p>So I have a form with 3 sections. I want a functionality where Section 1 gets filled than section 2 shows up and so on.</p>
  
  <p>I know the basic code of JavaScript but I don't know where to use it or how to invoke it. 
  I have made a web resource with SHOW and HIDE functions, now how do I invoke them.</p>
  
  <p>I am currently working the idea of using JAVA SCRIPT to hide the sections and show the latter sections when the former gets filled up. Here is my code.</p>
  
  <pre><code>function Hide()
  { Xrm.Page.ui.tabs.get("yourtabname").sections.get("your section name").setVisible(false); } 
  function Show()
  { Xrm.Page.ui.tabs.get("yourtabname").sections.get("your section name").setVisible(true); } 
  </code></pre>
  
  <p>Now I am aware that <code>Show()</code> will get attached to the last field of section 1 of the form, but what about the <code>Hide()</code> function? where will I invoke it?</p>