I want to submit a form, but the button isn't clickable. After some search I found out that this is due to the jquery validation that ASP.NET MVC has for required fields. For some weird reason ASP NET thinks my hidden field "UserId" is required. Which isn't actually true. See part of my model here:
public class ResetPasswordModel
{
[.....]
public Guid UserId
{
get;
set;
}
}
And the page source shows this:
<input data-val="true" data-val-required="The UserId field is required." id="UserId" name="UserId" type="hidden" value="" />
Any ideas?!?