Title: Text field &#8220;validation&#8221;
Last modified: October 3, 2016

---

# Text field “validation”

 *  [phr4pp](https://wordpress.org/support/users/phr4pp/)
 * (@phr4pp)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/text-field-validation/)
 * I need a text field where you can only enter a specific text from a list of words.
   I came across this site ([http://contactform7.com/2015/03/28/custom-validation/](http://contactform7.com/2015/03/28/custom-validation/))
   and since I know very little PHP, I can’t figure it on my own.
 * [text* your-name]
 * When you enter your name (p.e.: “John Doe”) it should check if that name is in
   that list of names – if the name is not in the list, then you can’t fill out 
   that form field. I guess this can be achieved by editing the validation code 
   in the functions.php.
 * I need this for a Website, where only allowed visitors (about 30 names total)
   shall be able to access the page by entering their full names. It doesn’t matter
   if it’s not secure – it’s just to make the page more personal.

The topic ‘Text field “validation”’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [phr4pp](https://wordpress.org/support/users/phr4pp/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/text-field-validation/)
 * Status: not resolved