• I’ve added an acceptance for terms and conditions to a form (CF7) but I don’t like the behaviour of just not submitting until the terms are ticked. So, following the plugin’s advice, I’ve added acceptance_as_validation: on to the Additional Settings.

    This works fine, with the exception that if the user does not tick, instead of getting the error message
    specific to acceptance (i.e. ‘There are terms that the sender must accept’), it returns the default error message, ‘Validation errors occurred’ instead.

    Is there a fix for this?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The Contact Form 7 plugin offers a single message on all form validation errors.

    ?Individual form field validation errors can be done via custom programing but you would need to be skilled at WordPress development using PHP and/or jQuery.

    Thread Starter mtstudios

    (@mtstudios)

    Thanks, Buzztone. That’s helpful.

    I think then the text for ‘There are terms that the sender must accept’ is like the other fields i.e. ‘please fill in required field’… then by all accounts, I should get two errors – the main form validation error, and the accept-the-terms message too, but I don’t….

    Any thoughts on how to get this error to show? I just need users to understand they need to accept terms before the form will send.

    I can edit PHP, so if you have a link, please do include it.
    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contact Form 7 gives wrong error message for acceptance field’ is closed to new replies.