Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Email Form

  1. #1
    New Coder
    Join Date
    Jan 2006
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Email Form

    Hi, I have a few sites that have some simple contact forms on them.

    Is there a way to make certain input fields a must for people filling them out. i.e if they dont give a correct email address the form wont send etc.

    Thanks in advance

  • #2
    New Coder
    Join Date
    Aug 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Of course. You need javascript, though. Search Google for javascript form validation Already the first hit takes you to http://www.xs4all.nl/~sbpoley/webmatters/formval.html, which describes how to handle required fields.

  • #3
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    If you want to have a look at a basic solution that requires little re-writing of original forms take a look at what I posted, the script in the attachment works fine except for the question that I posted about - which is really only icing on the cake for the user.

    universal form validation - focus on 1st error field

    Regards

    Andy


  •  

    Posting Permissions

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