Contact Form 7
[resolved] Drop-down menu not validating on ONLY first 2 selections? (4 posts)

  1. tomlewek
    Posted 2 years ago #

    I have a wpcf7 form set up on this page:

    and all is working smoothly except for the drop down menus.

    For some reason the form is not allowed to be submitted if the user selects the first 2 values/choice in the list. This is true of all drop downs in this form.

    Any idea of a fix for this or what I may be doing wrong?

    Here is an example of one of the drop down tags in my form:
    [select* state first_as_label "State" "AL" "AK" "AZ" "AR" "CA" "CO" "CT" "DE" "DC" "FL" "GA" "HI" "ID" "IL" "IN" "IA" "KS" "KY" "LA" "ME" "MD" "MA" "MI" "MN" "MS" "MO" "MT" "NE" "NV" "NH" "NJ" "NM" "NY" "NC" "ND" "OH" "OK" "OR" "PA" "PR" "RI" "SC" "SD" "TN" "TX" "UT" "VT" "VA" "WA" "WV" "WI" "WY"]

    If I select "State" or "AL", the form will not validate. If I select any other value below AL, it will submit. Help?


  2. Takayuki Miyoshi
    Plugin Author

    Posted 2 years ago #

    Simply remove the JavaScript code that seems to try to validate the form in its own way from your template.

  3. tomlewek
    Posted 2 years ago #

    Thanks! I see the issue now, it was added by another developer and I didn't realize it was there. Much appreciate the quick response!

  4. tomlewek
    Posted 2 years ago #

    Thanks again!

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