WordPress.org

Forums

Contact Form 7
select* dropdown menu (6 posts)

  1. uts
    Member
    Posted 1 year ago #

    Since upgrading Contact form 7 to the latest my menu which I want users to have to select an option, no longer requires them too.
    I have [select* menu-634 include_blank "USA" "Canada"
    But they can just choose nothing and this is not what I want. Any idea why the select* is no longer being followed?

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

  2. jpinofoto
    Member
    Posted 1 year ago #

    i,ve the same problem. I need to be sure that the client select an option, but the validation skip the dropdown.

  3. nztim
    Member
    Posted 1 year ago #

    Yes I have the same problem too, and I'm pretty confident that it was working correctly until recently.

    It appears that the demo on http://contactform7.com/checkboxes-radio-buttons-and-menus/ demonstrates the issue - you can submit the form without selecting anything from the required select box.

  4. charlie.olsen
    Member
    Posted 1 year ago #

    I'm facing the same problem... I have correctly set it like this:

    [select* candidato include_blank "option1" "option2" "option3" "option4"]

    But validation ignores it...

  5. nztim
    Member
    Posted 1 year ago #

    As per the other topic, this appears to produce a validated required select box:

    [select* fieldname "" "option1" "option2" "option3" "option4"]

    Note there is no 'include_blank' and the first option is blank.

  6. charlie.olsen
    Member
    Posted 1 year ago #

    Thanks, nztim, that worked! They should fix the demo code, because it clearly states that we should use include_blank...

    http://contactform7.com/checkboxes-radio-buttons-and-menus/

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

Tags

No tags yet.