Results 1 to 2 of 2

Thread: Required Field Validation Problem

  1. #1
    Join Date
    Jul 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Required Field Validation Problem

    1) Script Title: Required field(s) validation

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...uiredcheck.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?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

    Code:
     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"
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •