Results 1 to 3 of 3

Thread: Validation

  1. #1
    Join Date
    Oct 2009
    Posts
    63

    Default Validation

    I understand I can use the Formail validation and it will redirect me to a page with the errors and they have the option to return to the page and correct the errors. ... is there a way to validate the form via formail and if validation does not pass show the validation on the same page so they can fix it and resubmit?
    Such as AJAX submit and if all is well it executes and if not trigger jquery to show which feilds need fixed ?

  2. #2
    Join Date
    Oct 2009
    Posts
    63

    Default Re: Validation

    Like could I add some validation code to the end of the formmail.php for the ajax to use to validate or will it mess up the formmail.php?

  3. #3
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Validation

    Hi,

    Implementing AJAX in FormMail is non-trivial, but we are planning it this year.

    In the meantime, we have a JavaScript validation script that does what you want.

    It's called "formval.js" and you can download it here:
    http://www.tectite.com/public_downloads/

    Load it into your HTML and it will automatically validate using FormMail's "required" fields specification.

    Within the next couple of weeks it will also support FormMail "conditions" fields.

    If you have problems with the positioning of the error messages, put each field in a <div> and the message will be placed at the end of the div.

    There are other ways to position the error messages for each field, so write back if you need help with that.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to perform a simple field validation
    By bemmel in forum Community Support
    Replies: 3
    Last Post: 26-Aug-2006, 07:31 AM
  2. syntax-validation for email-address?
    By yogi in forum Community Support
    Replies: 1
    Last Post: 09-Apr-2006, 04:05 PM
  3. syntax-validation for email-address?
    By yogi in forum Features Questions
    Replies: 1
    Last Post: 09-Apr-2006, 04:05 PM
  4. Error message emails following form validation
    By dynamo in forum FormMail Subscription Support
    Replies: 1
    Last Post: 06-Mar-2006, 04:50 AM
  5. Email validation - but only if field completed
    By tvulucy in forum FormMail Subscription Support
    Replies: 1
    Last Post: 31-Aug-2005, 09:12 PM

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
  •