Open rct40 opened 4 years ago
Hello,
I'm having an issue making AssertThat work for me. I want to force the user to select a test result outcome from when PregnancyTestRequired = true - however it seems to ignore it and continue to post the data to my controller.
Here is a snippet of my view model... `[DisplayName("Pregnancy Test required")] public bool PregnancyTestRequired { get; set; }
[AssertThat("PregnancyTestRequired == true && PregnancyTestResult > 0", ErrorMessage = "Required")] [DisplayName("Pregnancy Test Result")] public int PregnancyTestResult { get; set; }`
I'm using version 2.9.6 Any idea what I am doing wrong?
Have you read this? https://github.com/jwaliszko/ExpressiveAnnotations#what-about-the-support-of-aspnet-mvc-client-side-validation
Hello,
I'm having an issue making AssertThat work for me. I want to force the user to select a test result outcome from
Here is a snippet of my view model... `[DisplayName("Pregnancy Test required")] public bool PregnancyTestRequired { get; set; }
I'm using version 2.9.6 Any idea what I am doing wrong?