title: Best way to handle locked/disabled fields on your forms?
body: <p>I need users to be able to only edit certain fields on a webform, and not others. This may be due to user privileges, for example.</p>
  
  <p>I'm not sure on the best way to handle this.</p>
  
  <ol>
  <li><p>Set the form attribute to disabled. The problem with this is that disabled fields don't get submitted, so I either need to include hidden form fields, or I need to cater for this in my model (i.e. only update fields that shouldn't get changed)</p></li>
  <li><p>Set the attribute to readonly. Possibly better than the above because these fields automatically get posted</p></li>
  <li><p>Don't use a form field at all - just echo out the var in html. Possibly include a hidden form field or only update fields that shouldnt get changed in the model</p></li>
  </ol>
  
  <p>I'm not sure on the best way to handle this, both from a UX point of view, and from a general application point of view.</p>