PDA

View Full Version : Automatic Form Field Validation



j_newton
07-25-2002, 03:49 AM
When defining an input form with validation. Some errors seem to be picked up and reported via an error box while others are grouped together and displayed on a "Form Validation Error" page with a "Return to Form" Option.

Is there any way of controlling this without writing the javacode by hand. As the "Return to Form" Option results in the visitor being again presented with a blank form (On a large form this really puts peoples backs up)

I would be happy to have all validation failures reported via error boxes (even though they only cover one error at a time) or the "Return to Form" option returning the visitor to the form as filled in .

Any help gratefully received

:?:

GWDGuy
07-25-2002, 06:54 AM
If I am understanding your question correctly you are looking for something that will alert the user that they left a field blank as soon as they tab past it instead of waiting until they submit the form?

Try >> http://freewarejava.com/ I remember seeing a java script that would do that somewhere.. You might also try >> http://javascript.internet.com/forms/

Robert

justjay
07-25-2002, 11:27 AM
This one (http://webdeveloper.earthweb.com/webjs/item/0,,12744_90121,00.html) was pointed out to me

bud
07-25-2002, 11:19 PM
I have a refference set of pages that I add to from time to time... Nothing fancy but it does show how you can validate using simple script with asp

Forms (http://216.127.196.144/learn%20it/testform/form1.asp)