Contact Form 7
Dropdown Validation Error even when item is selected (2 posts)

  1. Matthew Fries
    Posted 4 years ago #

    This is just some strange behavior in Contact Form 7 that I thought I'd mention in case anyone else is pulling their hair out like I've been. I found that if I create a required select box (dropdown) that has a double-space in one of the options, the form will not validate if the user selects that option and tries to submit.

    For example, the following won't work. You cannot select "Single Room" because the extra space between "Single" and "Room" will cause a validation error:

    [select* housing include_blank "Double Room" "Single Room"]

    This WILL work (because I've removed the extra space between "Single" and "Room"):

    [select* housing include_blank "Double Room" "Single Room"]

    Took me a while to track that down, so just sharing it here. Great plugin otherwise!



  2. Matthew Fries
    Posted 4 years ago #

    OK. WordPress.org stripped out my extra space in my code demonstration. Note I'm pointing out the difference between using:




    The 2 spaces will cause the form to not submit if that option is selected.

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