title: MS CRM - setVisible
body: <p>I am newbie with CRM and
  I was googling for how to hide and show a text field using <code>jScript</code> library in <code>MS CRM</code> (online) and found several options of using the function <code>setVisible</code>.</p>
  
  <p>I tried those options:</p>
  
  <ol>
  <li><code>Xrm.Page.ui.tabs.get('new_fieldname').setVisible(false);</code></li>
  <li><code>Xrm.Page.data.entity.attributes.get('new_fieldname').setVisible(false);</code></li>
  <li><code>Xrm.Page.getAttribute('new_fieldname').controls.get(0).setVisible(false);</code></li>
  </ol>
  
  <p>But only the last one is really working.
  The first option gives me an error message.</p>
  
  <p>What is the different between them?</p>