Title: form field validation
Last modified: February 16, 2018

---

# form field validation

 *  Resolved [Mickyjeff](https://wordpress.org/support/users/mickyjeff/)
 * (@mickyjeff)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/form-field-validation/)
 * so I am using the lite version of your plug in…Is it possible to accept only 
   a certain value for a single line text field ? Lemme explain further.
 * Lets say I create a form to collect a user input..Field A tells user to input
   in a verification code. And the correct verification code is 1234….Can I set 
   field to accept only 1234 as the correct verification code ?..Any other code 
   entered and user will get an error to enter the correct verification code ?..

Viewing 1 replies (of 1 total)

 *  [Jess Quig](https://wordpress.org/support/users/jquigam/)
 * (@jquigam)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/form-field-validation/#post-9995486)
 * Hi mickyjeff,
 * We don’t currently have a way to do quite what you’re describing. However, I 
   do agree that this type of functionality would be useful and we’ve got this concept
   on our feature request list to consider in the future.
 * If the goal is to block access to your forms unless the user has a password/code,
   though, you should be able to accomplish something pretty similar with built-
   in WordPress functionality — specifically, the Password-Protected option in the
   page/post editor. [Here’s a tutorial from WPBeginner that shares more details on this option](http://www.wpbeginner.com/beginners-guide/how-to-password-protect-posts-in-wordpress/).
 * I apologize that we can’t currently offer quite what you’re looking for, but 
   I hope that tutorial is helpful! 🙂

Viewing 1 replies (of 1 total)

The topic ‘form field validation’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jess Quig](https://wordpress.org/support/users/jquigam/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/form-field-validation/#post-9995486)
 * Status: resolved