Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] Dropdown Validation Error even when item is selected

  • 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!

    Matthew

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

Viewing 1 replies (of 1 total)
  • OK. WordPress.org stripped out my extra space in my code demonstration. Note I’m pointing out the difference between using:

    “SingleSpaceSpaceRoom”

    and:

    “SingleSpaceRoom”

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

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Contact Form 7] Dropdown Validation Error even when item is selected’ is closed to new replies.