Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have added required field validators on my page and ValidationSummary to show the messages. When I submit the page, it shows all the validation messages in the summary and text adjacent to control. Now, when I enter some text in the textbox and press tab, the text besides the control goes away but message in the ValidationSummary stays there.

Is there a way to get rid of the message as well on tab when text is entered in a textbox?

What I have tried:

Tried Display Dynamic, Static, None.
Posted
Updated 31-Oct-16 8:38am

1 solution

There's no built-in option to do that, and with good reason.

Firstly, the page will be jumping around as the user types. This will cause accessibility problems and annoy your users.

Secondly, until the user submits the form, there is no way to know which validation group needs to be validated.

If you want to implement this, you'll need to write your own Javascript to call Page_ClientValidate when the relevant change / click / blur events fire.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900