title: Making a field read-only in MS CRM 2013
body: <p>I want to use javascript to make a page read-only in MS CRM 2013. I have found a solution like this:</p>
  
  <pre><code>var ToBeReadOnlyControl = Xrm.Page.ui.controls.get("ownerid");
  ToBeReadOnlyControl.setDisabled(true);
  </code></pre>
  
  <p>The idea is to browse all fields and disable them, but I want to just make a field read only and not disable it with a "padlock".</p>
  
  <p>Do you have any idea how I can do this in javascript?</p>