Howdy
I have some Validators defined as follows. I want to supply negativeFeedback when validation fails, but nothing for positiveFeedback (i.e. null or ""). The problem I have is that once negative feedback appears, it won't go away. I am forced to supply positiveFeedback such as "OK" to make it disappear. I'm left with the editor turning green and "OK" appearing. Devices are only so big, so I don't want to waste valuable real estate and clutter up the screen with "OK" messages. It reminds me of The Simpsons episode where Homer invents the "Everything is okay alarm". It just goes off all the time, except for when there's an emergency.
[DisplayOptions(PlaceholderText = "Bank Code", Header = "Bank Code")]
[RegularExpressionValidator(@"^\d{2}$", "Bank code must be 2 digits long")]
public string BankCode { get; set; }
[DisplayOptions(PlaceholderText = "Branch Code", Header = "Branch Code")]
[NonEmptyValidator("Please supply Branch Code")]
public string BranchCode { get; set; }
[DisplayOptions(PlaceholderText = "Account Number", Header = "Account Number")]
[StringLengthValidator(7, 7, "Account Number must be 7 digits long")]
public string AccountNumber { get; set; }
Cheers
Craig