Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] Select* Required Field Not Working

  • Takayuki Miyoshi or anyone who can help,

    I notice that “Select*” does not work and that the form doesn’t recognize if the field is filled in or not. Even when it is filled in it keeps asking to “Please fill the required field.” The field works once I remove the “*” from the coding but I need the fields to be required. What is going on with the fields and how do I fix it? Please advise. Thanks!

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can I check the site?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    How did you add the select elements?

    I used both copy/paste/reedit code and generate tag.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What is the exact tag?

    <p>Best Time
    [select* best-time tabindex:5 include_blank “Anytime” “Before Noon” “Afternoon” “Evening”] </p>

    <p>Contact By
    [select* contact-by tabindex:6 include_blank “Email Only” “Phone Only” “Email and Phone”]</p>

    <p>Are you a veteran?
    [select* veteran tabindex:12 include_blank “Yes” “No”] </p>

    <p>Have you been employed more than 2 years?
    [select* employed-more-than-2-years tabindex:11 include_blank “Yes” “No”] </p>

    <p>Foreclosure or a short sale within the past three years?
    [select* foreclosure-short-sale-within-three-years tabindex:13 include_blank “Yes” “No”] </p>

    <p>Property Type (required)
    [select* property-type tabindex:14 include_blank “Primary Residence” “Second Home” “Investment Non-Owner Occupied”] </p>

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    The current state of the form is not like that by looking at the HTML source. I guess you have modified HTML manually, and that is the cause of the problem.

    You just asked for the tag, you didn’t ask for the complete form. Here it is below. And also I did modified the HTML manually, but I also created a new form and just used the generate tag without modifying anything and the required field still didn’t work.

    <div style="background-color:#FFFFFF; border: solid 1px #C0C0C0; padding:10px; width:98%; border-radius:4px; box-shadow: 10px 10px 5px #888888; ">
    
    <p style="text-align: center;"><span style="color: #5192d9;"><strong><span style="font-size: medium;">Pre-Qualification Form</span></strong></span></p>
    <span style="font-size: medium;">Please fill out this completely confidential form:
    </span><em style="font-size: medium;">Your information is 100% confidential and will never be shared with anyone
    
    <em style="font-size: medium;"><span style="font-size: medium;">Your confidential information will be sent directly to Valentina Herzog, Broker of Realty Expertise, for a complete review, and you will soon be personally contacted by Valentina Herzog, via your preferred method of contact. If this is an urgent matter please call us at 702.373.7565.</span>
    
    <span style="font-size: medium;">We look forward to working with you. Thank You!</span>
    
     
    
    <table><tr><td>
    
    <p>First Name (required)
       [text* first-name tabindex:1] </p>
    
     <p>Phone (required)
       [text* phone tabindex:3] </p>
    
    <p>Best Time [select* best-time tabindex:5 include_blank "Anytime" "Before Noon" "Afternoon" "Evening"] </p>
    
    </td> <td style="width:25px">
    </td>
    <td>
    
    <p>Last Name (required)
       [text* last-name tabindex:2] </p>
    
    <p>Email (required)
       [email* email tabindex:4] </p>
    
    <p>Contact By [select* contact-by tabindex:6 include_blank "Email Only" "Phone Only" "Email and Phone"]</p>
    
    </td></tr></table>
    
    <table><tr><td>
    
    <p>Address (required)
       [text* address 91/100 tabindex:7] </p>
    
    </td></tr></table>
    
    <table><tr><td>
    
    <p>City (required)
       [text* city tabindex:8]</p>
    
    <p>Employer (required)
       [text* employer tabindex:10]</p>
    
    <p>Are you a veteran? [select* veteran tabindex:12 include_blank "Yes" "No"] </p>
    
    </td> <td style="width:25px">
    </td>
    <td>
    
    <p>Zip (required)
       [text* zip tabindex:9] </p>
    
    <p>Have you been employed more than 2 years? [select* employed-more-than-2-years tabindex:11 include_blank "Yes" "No"] </p>
    
    <p>Foreclosure or a short sale within the past three years? [select* foreclosure-short-sale-within-three-years tabindex:13 include_blank "Yes" "No"] </p>
    
    </td></tr></table>
    
    <table><tr><td>
    
    <p><span style="color: #5192d9;"><strong><span style="font-size: medium;">TYPE OF PROPERTY YOU ARE PURCHASING</span></strong></span></p>
    
    </td></tr></table>
    
    <table><tr><td>
    
    <p>Property Type (required)[select* property-type tabindex:14 include_blank "Primary Residence" "Second Home" "Investment Non-Owner Occupied"] </p>
    
    <p>Property City (required)[text* property-city tabindex:16]</p>
    
    </td> <td style="width:25px">
    </td>
    <td>
    
    <p>Listing Price (required)[text* listing-price tabindex:15]</p>
    
    <p>Property Zip (required)[text* property-zip tabindex:16]</p>
    
    </td></tr></table>
    
    <table><tr><td>
    
    <p ><span style="color: #5192d9;"><strong><span style="font-size: medium;">LOAN INFORMATION</span></strong></span></p>
    
    </td></tr></table>
    
    <table><tr><td>
    
    <p>Loan Amount (required)[text* loan-amount tabindex:17]</p>
    
    <p>Monthly Gross Income (required)[text* gross-income tabindex:19]</p>
    
    </td> <td style="width:25px">
    </td>
    <td>
    
    <p>Down Payment (required)[text* down-payment tabindex:18]</p>
    
    <p>Monthly Debt* (required)[text* monthly-debt tabindex:20]</p>
    
    </td></tr></table>
    
    <table><tr><td>
    
    <p>*car payments, credit cards, alimony or child support etc... (not to include rent or mortgage payment) </p>
    
    </td></tr></table>
    
    <table><tr><td>
    
    <p> Additional Information [textarea additional-information 40x5]</p>
    
    </td></tr></table>
    
    <table><tr><td>
    
    <p>[submit " SUBMIT "]</p>
    
    </td></tr></table>
    
    </div>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]

    I just created a new form and used the generate tag without making any manual modifications to it and the required selection drop box didn’t work. Here’s the link.

    http://67.225.198.9/~realtyex/3619-2/

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    <select style="width: 232px; name="BestTime" class="wpcf7-form-control wpcf7-select wpcf7-validates-as-required">

    This is what I see in the HTML source of http://67.225.198.9/~realtyex/3619-2/. Obviously invalid and modified manually.

    I didn’t modify it. You are the support tech, don’t tell me that I modify something when I didn’t. You are suppose to help me, not chastise me for something I didn’t do. WordPress changes html coding all the time in the background without my knowledge, can that be why it was modify??? How can I fix this problem??? Isn’t that your job to let me know how to fix this? If you can’t help me fix this, then tell me that you can’t fix this so I can figure out another solution.

    esmi

    (@esmi)

    Forum Moderator

    You are the support tech

    Whoah cowboy! There are no “support techs” on here. Only the developer of a free plugin trying to help you.

    You are suppose to help me
    […]
    Isn’t that your job to let me know how to fix this?

    Incorrect – on both counts. A plugin developer is under no obligation to help you or anyone. That he does so freely says great deal about his integrity and commitment to the users of his otherwise excellent plugin.

    I suggest you now take a few deep breaths, calm down and try to continue this discussion in a calm and civil manner.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    OK. Sorry for that. I have no intention of blaming you. Just telling a fact that the HTML is not the same as what it should be, and it is the direct cause of the issue.

    If you don’t know the reason of the change of HTML output, try deactivating all other plugins and switching to the default theme. It is possible that they interrupt output.

    And, please note that this is not my job. I and other answerers on this forum are all volunteers.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Oh, thanks esmi.

    Excuse me but it was civil. Did I curse or call him a name? No. Did I use bold/cap text? No. He accuse me of doing something that I didn’t do and talk down on me. That was disrespectful on his part to talk down on me like I am a child. I came here looking for help and he accuse me of doing something I didn’t do and talk down on me so I responded accordingly to his response in a calm manner. This is a support forum correct? If someone has a problem, they come here for help and solutions. If he can’t help me then he should just say he can’t help me. I’m looking for solutions, not to be talk down upon.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Plugin: Contact Form 7] Select* Required Field Not Working’ is closed to new replies.