Support » Plugin: Contact Form 7 » Contact Form 7: No Error Message Appears if don't Check Acceptance box

  • Resolved paige.elena

    (@paigeelena)


    I have a registration form with an acceptance box at the end of the form right before the submit button. If I don’t check the acceptance box, nothing happens – no error message appears and the form isn’t sent. Shouldn’t an error message appear saying “Please accept the terms and conditions to proceed.” or whatever I have in the “There are terms that the sender must accept” message box? How can I get an error message to appear if the acceptance box isn’t checked?

    Thanks for your help!

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 10 replies - 1 through 10 (of 10 total)
  • If you could include a link to your form, others here may be able to offer some advice.

    Is the same problem for me…

    RE: If I don’t check the acceptance box, nothing happens – no error message appears and the form isn’t sent.

    This is how the Acceptance Box works in the plugin. It doesn’t offer the other features you are looking for.

    Basically it just stops you from selecting the Send button. When you tick the Acceptance Box the Send button becomes selectable. If you then hit the Send button any Javascript messages associated with incomplete required fields will appear.

    To see how the Acceptance Box works in detail you can setup a very simple form (I based my test on the default “Contact form 1”) on another page.

    Thanks for your reply! I expected it to work differently because in the “Messages” section where you set up the form there is an error message that says “# There are terms that the sender must accept” and the default message that the user sees is “Please accept the terms and conditions to proceed.” This made me think that if a user doesn’t check the acceptance box that the message “Please accept the terms and conditions to proceed.” would appear to the user prompting them to check the acceptance box.

    Also (get ready for a side note), if the error message is not suppose to appear and it’s suppose to work as you described, it might be best to make the submit button appear unclickable when the acceptance box isn’t checked and then when it is checked make the submit button look clickable.

    Paige your correct it’s supposed to show a error message if the acceptance box is not clicked.

    Paige.Elena if you would like the validation message for acceptance box(s) to appear

    1. Install the development version (you can find it at the bottom of the list)
    2. Add this line into the Additional Settings field of contact form settings: acceptance_as_validation: on

    Thank you Jags2ooo! That worked for me.

    Thank you so much for taking the time to post this fix Jags2ooo, I was wondering the exact same thing as paige.elena and was looking for an explanation/fix when I came across this thread.

    I was looking for the same feature as well. It half worked for me thought. The message “Please accept the terms to proceed” is wrapped in a ~20px div and is quite ugly. Any tips on how to fix this?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Contact Form 7: No Error Message Appears if don't Check Acceptance box’ is closed to new replies.