Title: make select field required while using placeholder
Last modified: August 21, 2016

---

# make select field required while using placeholder

 *  [purplearth](https://wordpress.org/support/users/purplearth/)
 * (@purplearth)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/make-select-field-required-while-using-placeholder/)
 * I’m working on a project where a form has a select field built dynamically from
   a list of pages, and we have placeholder text for the first option. That part
   is working fine.
 * The problem is that it is a required field, and our placeholder text is returned
   as the selection when the form is submitted. Since it’s not an empty field, the
   form is (wrongly) accepted.
 * What can we do to force the select field to trigger a validation error (“please
   select something here”) when a user “selects” our placeholder text (in other 
   words, fails to make a selection).
 * Thanks in advance.
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

Viewing 1 replies (of 1 total)

 *  [nickberens360](https://wordpress.org/support/users/nickberens360/)
 * (@nickberens360)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/make-select-field-required-while-using-placeholder/#post-5163255)
 * Hey purpleearth, did you ever get this figured out?

Viewing 1 replies (of 1 total)

The topic ‘make select field required while using placeholder’ is closed to new 
replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [select](https://wordpress.org/support/topic-tag/select/)

 * 1 reply
 * 2 participants
 * Last reply from: [nickberens360](https://wordpress.org/support/users/nickberens360/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/make-select-field-required-while-using-placeholder/#post-5163255)
 * Status: not resolved