WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Email validation breaks 'success' function of the scrip (3 posts)

  1. JulienAAZ
    Member
    Posted 3 years ago #

    I've this problem on 2 different version of WP (2.9 and 3.0).

    - when the fields are empty and then I validate, the ajax request is OK and the error messages appears correctly.
    - when I put something stupid in the email field (ex:'toto'), ajax request is OK, there is a good response (a JSON object, I checked with Firebug), but the 'success' function 'wpcf7ProcessJson' doesn't occur (the ajax loader spins on and there is no message)

    Could you help ?

    Thanks.

  2. JulienAAZ
    Member
    Posted 3 years ago #

    I've found the problem : I use the French translations and the French translation for 'invalid email' is "L'adresse email est invalide" with a simple quote. Removing that quote resolves my valdiation problem but I would still have a good translation string !

    Thanks.

  3. Greg
    Member
    Posted 3 years ago #

    Doesn't fix the rootcause, but try using ’ instead of ' in your translated strings. From a user standpoint, it'll be just fine and won't break the code.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic