0

I have a validator that check an input.
i what that the validator displayed "valid" if the value is valid, and "invalid" if the value is hasnt passed the validation.

can i manage this without adding an addional lable for the valid state(by setting the visibility: true/false)?

does the validator control has am alternative value, or i have to override it?

1 Answer 1

1

No, the validators are designed to render text if there was a validation error, and to be unobtrusive if not.

Of course, you could create a new Validator inheriting from BaseValidator that would do this.

There's an article giving a good overview of how to do this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.