Title: Validate select field
Last modified: March 2, 2017

---

# Validate select field

 *  [Trainshed](https://wordpress.org/support/users/trainshed/)
 * (@trainshed)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/validate-select-field/)
 * Hello
 * Is it possible to validate that the user has made a select box choice?
    I have
   an age selector with the following possible selections: Please select… 14 15 
   16 17 18 19 I’ve set required field true but that doesn’t prevent form completion
   if the selection “Please select…” isn’t changed. I’ve also tried Regex validation
   of /^\d{2}/ but that doesn’r work either. Help please!

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/validate-select-field/#post-8867585)
 * Hi, in regards to your comment.
 * >  I’ve set required field true but that doesn’t prevent form completion if the
   > selection “Please select…” isn’t changed.
 * Are you saying that even if the person does not select a field the form still
   goes through?
 *  [Michael J Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/validate-select-field/#post-8867605)
 * The brackets will make it work like you want. Set your options like this:
    [Please
   select…] 14 15 16 17 18 19
 *  Thread Starter [Trainshed](https://wordpress.org/support/users/trainshed/)
 * (@trainshed)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/validate-select-field/#post-8869081)
 * Hi Mike
 * Thanks, that works fine. And a very quick support response.
 * As a matter of interest and in general how would I format a Regex check? I found
   somewhere that it was terminated at each end by / but I’m not sure that is right.
   Is there a guide to using Regex on FS Contact From.
 * Also is there a way of requiring two entry fields for email and validating that
   they match?
 * I am really impressed by FS Contact Form and Database.
 * Thanks
    Simon
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/validate-select-field/#post-8869311)
 * [@trainshed](https://wordpress.org/support/users/trainshed/), please check the
   following [documentation](http://www.fastsecurecontactform.com/email-field-required-twice).
   Let me know if this is what you are looking for.
 * In regards to regex there is no real guide for FSCF. You might like to check 
   the following [documentation](http://www.fastsecurecontactform.com/how-to-add-extra-fields).
   There is a little section about regex.
 * Thank you
 *  Thread Starter [Trainshed](https://wordpress.org/support/users/trainshed/)
 * (@trainshed)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/validate-select-field/#post-8869426)
 * Great, thanks
 * I should have seen the option but it was at the bottom, not with all the other
   option checkboxes, so I missed it. Sorry and thanks for prompt support.
 * Simon
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/validate-select-field/#post-8869544)
 * You are most welcome. Can you mark this support thread as resolved if you don’t
   need any more help.
 * Kind regards

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Validate select field’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/si-contact-form_dde2be.svg)
 * [Fast Secure Contact Form](https://wordpress.org/plugins/si-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/si-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/si-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/si-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/si-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/si-contact-form/reviews/)

## Tags

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

 * 6 replies
 * 3 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/validate-select-field/#post-8869544)
 * Status: not resolved