Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Validation Question 2

Status
Not open for further replies.

dcusick

Technical User
Aug 9, 2000
271
US
Okay, I have a problem/question. I have a webpage that I am using for input. On that page, I am using javascript tabbing. So basically, clicking on a "tab" will hide and show different spans, with different data-entry fields on them. The whole page is within one big form. Each "tab" has its own save button. On the fields, I am using Field Validators to validate the input.

The problem I'm having is this, if there is a field that doesn't pass validation on tab #2, and I am on tab #1 and hit save, nothing happens. Obviously, you cannot submit the form unless everything is valid. However, to a user, it would seem like a bug. The "tab" they are looking at looks fine. They wouldn't really know to look on another tab for a validation error. Is there anyway to catch this state? so I can at least let the user know that there is an error somewhere? Thanks in advance!
 
You can try to use a Validation Summary control. This will list all the controls that fail validation.
 
Perfect, that was it. Didn't even cross my mind to use that. Exactly what I was looking for too. Thanks guys. Much appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top