title: Disable Required Validation Specific Field in the View ASP.NET MVC 4
body: <p>if someone could give me some hint I would appreciate. </p>
  
  <p>I'm searching for a while, and I even found a post I thought it would solve my problem, but it didn't.</p>
  
  <p><a href="https://stackoverflow.com/questions/5367287/disable-required-validation-attribute-under-certain-circumstances">Disable Required validation attribute under certain circumstances</a></p>
  
  <p>Basically I have a simple User.cs model where I have username, <strong>FirstName</strong>, <strong>LastName</strong> and <strong>SignupDate</strong></p>
  
  <p>All have the required annotation and I would like to solve this without erasing the <strong>Required</strong> tag.</p>
  
  <p>After I generate the view, I erase in the view the html code for the <strong>SignupDate</strong>:</p>
  
  <pre><code> &lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.SignupDate)
   &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.EditorFor(model =&gt; model.SignupDate)
          @Html.ValidationMessageFor(model =&gt; model.SignupDate)
   &lt;/div&gt;
  </code></pre>
  
  <p>When I click <strong>submit</strong> it does not work.</p>
  
  <p>Also if I do the suggested in the other post</p>
  
  <pre><code>&lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.SignupDate)
  &lt;/div&gt;
  &lt;div class="editor-field"&gt;
         @Html.TexBoxFor(model =&gt; model.SignupDate, new { data_val = false })
  &lt;/div&gt;
  </code></pre>
  
  <p>If I leave it as blank also does not work..</p>
  
  <p>Any suggestions? Thanks!!</p>