title: Show validation message for Hidden field
body: <p>May be this can be a question some more similar to others But I haven't find the solution that I want from those.</p>
  
  <p>I want to show the Validation message I have set for particular field in MVC::</p>
  
  <p>My ViewModel is::</p>
  
  <pre><code> public class MainDocumentViewModel
      {
  
  
          [Required(ErrorMessage = "Please Enter Valid Customer Name")]
          public long CustomerID { get; set; }
      }
  </code></pre>
  
  <p>My View is as ::</p>
  
  <pre><code>&lt;form&gt;
  
      @Html.HiddenFor(x =&gt; x.CustomerID)
      @Html.ValidationMessageFor(x=&gt;x.CustomerID)
  
   &lt;button type="submit"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>But after submitting the form, I am not getting any error.
  Help me on this.
  Thanks in advance. </p>