title: About Asp.Net MVC Helper Html.Hidden
body: <p>I have the following model</p>
  
  <pre><code>Public Class BaseViewModel
  
  Public Property Id as integer
  Public Property Title As String
  
  &lt;DisplayName("Creation Date"), Required(), ScaffoldColumn(False)&gt;
  Public Property DateCreation As String
  &lt;DisplayName("Creation User"), Required(), ScaffoldColumn(False)&gt;
  Public Property UserCreation As String
  &lt;DisplayName("Modification Date"), ScaffoldColumn(False)&gt;
  Public Property DateModification As String
  &lt;DisplayName("Modification User"), ScaffoldColumn(False)&gt;
  Public Property UserModification As String
  
  End Class
  </code></pre>
  
  <p>I've created a partial view named BaseViewModel that has the following HTML</p>
  
  <pre><code>&lt;div id="Detail-Item" class="hidden"&gt;
  @Using Html.BeginForm("Save", "Agency", Nothing, FormMethod.Post, New With {.id = "Detail-form"})
  @&lt;fieldset&gt;
      &lt;legend&gt;Agency&lt;/legend&gt;
      @Html.ValidationSummary()
      &lt;div class="editor-label"&gt; 
          @Html.LabelFor(Function(model) model.Id):
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.TextBoxFor(Function(model) model.Id, New With {.class = "textbox-id input-key textbox-inactive", .data_field = "Id", .readonly = "readonly"})    
          @Html.ValidationMessageFor(Function(model) model.Id, "*")
      &lt;/div&gt;
      &lt;div class="editor-label"&gt;
          @Html.LabelFor(Function(model) model.Title):
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.TextBoxFor(Function(model) model.Title, New With {.class = "textbox-name input-text focus", .data_field = "Title"})
          @Html.ValidationMessageFor(Function(model) model.Title, "*")
      &lt;/div&gt;
  
      &lt;div class="hidden"&gt;
          @Html.Hidden("UserCreation", String.Empty, New With {.class = "input-audituser", .data_field = "UserCreation"})
          @Html.Hidden("UserModification", String.Empty, New With {.class = "input-audituser", .data_field = "UserModification"})
          @Html.Hidden("DateCreation", String.Empty, New With {.class = "input-auditdate", .data_field = "DateCreation"})
          @Html.Hidden("DateModification", String.Empty, New With {.class = "input-auditdate", .data_field = "DateModification"})
      &lt;/div&gt;
  &lt;/fieldset&gt;
  End Using
  &lt;/div&gt;
  </code></pre>
  
  <p>To render this view I'm using @html.EditForModel. My problem is that even I'm using Html.Hidden for DateCreation and UserCreation model properties the Html generated for these fields contain the "required" data validation attribute.</p>
  
  <p>Is this the way it should work?, if yes how can avoid that?</p>