Clear Server Validation
I have created an update account page where the form gets populated from the database.
They then make the changes and submit. If there are errors then Validation show if comes into play on that same page.
But if they leave the page and come back to it the validation errors still appear. Even though everything is correct because the form gets loaded from the db again.
My trigger is Current Page Submit.
How do I clear the errors if they leave the page?
I am using asp.
Also:
I load the form values from the database and when they submit the form if there is an error I set the QS to fail=yes. I then check if it is yes and then load the form with what they submitted.
Sample Code:
value="<%If Request.QueryString("fail") = "yes" Then Response.Write(ValidatedField("updateAccount","customer_postcode")) Else Response.Write(rs_Account.Fields.Item("BuyerZip").Value) End If %>"
Is this the best way to do this? or is there a more simple way?