• Hi – I’m hoping someone can help with my Contact Form 7 validation fields as I seem to be struggling!!!

    I have three fields, your name, your email and a “are you human quiz” that all throw up a red “Validation errors occurred. Please confirm the fields and submit again.” error if completed incorrectly. I want to try and highlight to the site user which data is incorrect, for example the email field,or the quiz answer, but can’t seen to get the messages to sync correctly.

    My CF7 form looks like:

    <p>Your Name (required)<br />
        [text your-name akismet:author] </p>
    
    <p>Your Email (required)<br />
        [email your-email akismet:author_email] </p>
    
    <p>Subject<br />
        [text your-subject] </p>
    
    <p>Your Message<br />
        [textarea your-message] </p>
    
    <p>Are you human? Please answer this easy question: (required)<p>
    [quiz Quiz "5 + 7 = |12" "20 - 5 = |15" "10 + 4 = |14" "15 - 5 = |10" "8 + 8 = |16" "20 - 2 = |18" "16 + 3 = |19"]
    
    <p>[submit "Send"]</p>

    and the messages are set up as follows:

    # Validation errors occurred = Validation errors occurred. Please confirm the fields and submit again.

    # Email address that the sender entered is invalid = Your email address is not recognised, please check the details entered and retry.

    # Sender doesn’t enter the correct answer to the quiz = The answer to your question is incorrect – please try again to prove you’re not a computer!

    Please help me know what i’m doing wrong. Many thanks

    https://www.ads-software.com/extend/plugins/contact-form-7/

  • The topic ‘Validation error not highlighting the incomplete field’ is closed to new replies.