Contact Form 7
Form with empty mandatory fields will submit if user only checks the acceptance (1 post)

  1. Marco Marsala
    Posted 1 year ago #

    Checking only the acceptance checkbox, the form will permit submitting, even if mandatory fields above are all empty.

    I can provide a test case on a real site if you need (please email me for details).

    Description of an example case:
    I have a form with the following fields:
    name (mandatory)
    phone (mandatory)
    date (mandatory)
    acceptance checkbox

    Current behaviour (wrong): If user checks only the acceptance checkbox, leaving blank the name, phone and date fields, and he/she hits the Submit button, the form will submit!

    Expected behaviour (correct): the form must not submit until name, phone, date fields are filled!


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