PDA

View Full Version : Required Field Validation Problem



kca741979
06-22-2009, 04:14 PM
1) Script Title: Required field(s) validation

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/requiredcheck.htm

3) Describe problem: I am putting together a site for a client and am having a problem with getting this to work correctly.

The site URL is http://www.cannonbonding.com/contractandpayment.htm

I have numerous fields and all are in the script, but when a user hits SUBMIT with empty fields, the script is ignored and the user is taken straight to the confirmation screen.

Can anyone take a look at the code and show me where I am wrong?

ddadmin
06-22-2009, 11:48 PM
There's an error in your customization of the script below,namely, the part in red after City should be a comma and not a dot:


var fieldDescription = Array("Name of Defendant", "Your First Name", "Your Last Name", "Date of Birth", "SSN", "Phone", "Cell", "Street Address", "Apt #", "City". "State", "ZIP", "Own/Rent", "Length at Address", "Relationship to Defendant", "Race", "Sex"