Drop Down Required - How Did You Find...

User 296783 Photo


Registered User
21 posts

I created one that has 4 options. However, the first when selected won't let it work for it says required field. The others work. This must be a glitch. Please help. This is the site's page and code:
http://www.churchathome.org/america/index.html

<div class="fb-item fb-33-item-column" id="item38">
<div class="fb-grouplabel">
<label id="item38_label_0" style="display: inline;">How did you find us?</label>
</div>
<div class="fb-dropdown">
<select name="select38" id="item38_select_1" required data-hint="">
<option id="item38_0_option" selected value="">
Washington Times
</option>
<option id="item38_1_option" value="Homeschool Magazine">
Homeschool Magazine
</option>
<option id="item38_2_option" value="Facebook">
Facebook
</option>
<option id="item38_3_option" value="Other">
Other
</option>
</select>
</div>
</div>
User 379556 Photo


Registered User
1,603 posts

I took a look even though I don't have Web Form Builder.

The menu seems to work in the same way as the State/Province and Country drop-down menus. Those menus had a first item that wasn't by itself an intended choice - selecting that first item also leads to the 'required field' message.

Does perhaps the offending menu similarly needs a first item that is something like 'Select below'? Then the Washington Times could have the same coding as the other three items.

Frank
User 2147626 Photo


Ambassador
2,958 posts

When the 'Drop Down' element is selected, you can just put in your options and let someone select. You should make the first option something like 'unknown' because if they do not select anything, that is what will show up.

If you make the element 'required' then the first option will be 'Choose one'. If you change that option to anything else it won't matter. It cannot be selected so the field will show as blank and the form will not submit.

Go back and make the first option 'Choose one', or something similar like 'please let us know', and make the other options your selections. You can have as many drop down options as you like. Form will work fine either way.
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 296783 Photo


Registered User
21 posts

Thank you! I fixed it.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.