title: Grails - how to hide a date inside a form
body: <p>I have an 'edit' view for a model that has several fields (one of which is a date). I only want a few of the fields visible to allow edits, so I just hide the other fields using <code>&lt;g:hiddenField&gt;</code></p>
  
  <p>But one of the fields is of type TimeStamp and I can't seem to find a way to hide this in the form. I tried</p>
  
  <pre><code>&lt;g:form method="post" &gt;
      &lt;g:textField name="firstName" value="${applicationUserInstance?.firstName}" /&gt;
      &lt;g:textField name="lastName" value="${applicationUserInstance?.lastName}" /&gt;
      &lt;g:datePicker name="createDate" style="visibility:hidden;" precision="day" value="${applicationUserInstance.createDate}" /&gt;
  </code></pre>
  
  <p>The date picker is still visible. Any idea how to hide the date so that I can just pass this to the update method upon submit of the form. Many thanks.</p>