WordPress.org

Forums

Contact Form 7
[resolved] Contact Form 7: No Error Message Appears if don't Check Acceptance box (11 posts)

  1. paige.elena
    Member
    Posted 2 years ago #

    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/

  2. buzztone
    Member
    Posted 2 years ago #

    If you could include a link to your form, others here may be able to offer some advice.

  3. paige.elena
    Member
    Posted 2 years ago #

  4. otto69
    Member
    Posted 2 years ago #

    Is the same problem for me...

  5. buzztone
    Member
    Posted 2 years ago #

    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.

  6. paige.elena
    Member
    Posted 2 years ago #

    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.

  7. Jags2ooo
    Member
    Posted 2 years ago #

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

  8. Jags2ooo
    Member
    Posted 2 years ago #

    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
  9. paige.elena
    Member
    Posted 2 years ago #

    Thank you Jags2ooo! That worked for me.

  10. waterlilynz
    Member
    Posted 1 year ago #

    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.

  11. thisisbbc
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic