when running the page the validation on range brings up the required error but ignores the true true and false false it returns an error message when the check box is ticked regardless of what the range is set to. for example when the range is set to true true and the check box is ticked it gives me an error message and when it is not ticked it allows me to continue with no error. when range is false false it acts exactly the same.
it should error when not ticked
<p>
Please confirm you have read the <a href="~/Downloads/AccreditationAndSTCompanyEligibility.pdf" target="_blank">eligibility document.</a>
@Html.CheckBoxFor(m => m.ConfirmEligibilityDocument)
@Html.ValidationMessageFor(m => m.ConfirmEligibilityDocument)
</p>
[Range(typeof(bool), "true", "true", ErrorMessage = "You must accept our Terms & Conditions.")]
public bool ConfirmEligibilityDocument { get; set; }