WordPress.org

Forums

Contact Form 7
Making Dropdowns required (4 posts)

  1. patrickbjohnson
    Member
    Posted 9 months ago #

    Can't seem to find too much about this problem but noticed its extremely difficult to make a dropdown form required with Contact Form 7.

    The only successful scenario seems to be requiring the select, and making the first option blank.
    [select* menu-596 "" "Item 1" "Item 2"]

    Using include_blank doesn't seem to allow the validation to work.
    [select* show-recipient include_blank "Patrick|pjohnson@enkshows.com" "Conrado|cvillazor@enkshows.com""Jen|jpun@enkshows.com"]

    Using the listo extension also doesn't allow for a required state.
    [select* location-state include_blank class:input-120 data:us_subdivisions.states]

    Considering this, it seems a bit off? Maybe I'm executing incorrectly?

    https://wordpress.org/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 9 months ago #

    There is a known issue around the include_blank option and it has been fixed in the development version. Wait for the next release (3.9.1) or try the development version.

  3. patrickbjohnson
    Member
    Posted 9 months ago #

    Any idea on when 3.9.1 will be released?

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 9 months ago #

    In a couple of weeks. Maybe.

Reply

You must log in to post.

About this Plugin

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

About this Topic