title: Joomla fields : change dynamically the readonly property
body: <p>in Joomla component forms :</p>
  
  <p>is there a way to dynamically change the form field property : "readonly" ?</p>
  
  <p>example : </p>
  
  <pre><code>if( _condition_ )
     $this-&gt;form-&gt;getInput('Name')-&gt;readonly = true;
  </code></pre>