WordPress.org

Ready to get started?Download WordPress

Forums

Prevent Contact Form 7 from sending empty forms (3 posts)

  1. ahlex
    Member
    Posted 4 years ago #

    Hey there,

    I discovered that it is possible to send a totally empty form via CF7. It happens as long as none of the fields is a required one. But that actually shouldn't work, should it?

    Look, I have a form consisting of two fields and a submit button. The sender may choose whether to fill in the first one (e-mail field) or the second one (phone no. field). So I cannot make any of these required. But now it can get send even when both fields are empty.

    How to solve this problem?

    Regards, Ahlex

  2. Michael Mann
    Member
    Posted 4 years ago #

    Not idea, but perhaps a third field where they enter their name and have it be required?

  3. esmi
    Forum Moderator
    Posted 4 years ago #

    It is possible to make some input fields mandatory in Contact Form 7 - which would solve your "empty forms" issue.

Topic Closed

This topic has been closed to new replies.

About this Topic