Title: No field validation?
Last modified: August 21, 2016

---

# No field validation?

 *  Resolved [IID_Suzi](https://wordpress.org/support/users/iid_suzi/)
 * (@iid_suzi)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/no-field-validation/)
 * Hi,
 * I’m using WP Members on a clients website to restrict access on forum pages to
   residents only. The restricted access is working fine, but I’ve noticed on the
   registration form, people can type in any nonsense into the fields and it still
   goes through?
 * Also, adding a custom field for an ‘Access Code’ issued to residents – to ensure
   only genuine residents are registering… I can add the field without problem, 
   I can make it required no problem… but how do I set a value to it, to filter 
   out incorrect entries?… and again, I have no way of validating the info that 
   is typed into it… how do I make it throw an error message if they enter the wrong
   code?
 * Sorry if these are stupid questions… I’m not a coder.
 * [https://wordpress.org/plugins/wp-members/](https://wordpress.org/plugins/wp-members/)

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

 *  [gersonmedeiros](https://wordpress.org/support/users/gersonmedeiros/)
 * (@gersonmedeiros)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/no-field-validation/#post-5123478)
 * Greetings to all!
 * Congratulations for the excellent plugin!
 * I also would like to know how to validate and format the contents of fields, 
   for example: valid dates in dd / mm / yyyy format; email: [nome@dominio.com](https://wordpress.org/support/topic/no-field-validation/nome@dominio.com?output_format=md);
   Phone: (area code) and number; And how to implement custom rules (via functions
   in PHP) to validate documents (or bank account numbers) with check digit!
 * Link to the form in question: [http://apfit.org.br/cadastro-associado-apfit/](http://apfit.org.br/cadastro-associado-apfit/)
 * Thanks in advance!
 * Gerson Medeiros
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/no-field-validation/#post-5123511)
 * You can hook custom field validation to the [wpmem_pre_register_data action](http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_pre_register_data/).
 * For [@iid_suzi](https://wordpress.org/support/users/iid_suzi/), you mention you
   are not a coder, so that’s not as easy to implement for you. I generally avoid
   giving shameless plugs here, but on the plugin’s premium support site there is
   an invite code extension as well as some tutorials on the support site on how
   to implement an access or pin code.

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

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

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [form](https://wordpress.org/support/topic-tag/form/)
 * [Registration](https://wordpress.org/support/topic-tag/registration/)
 * [validate](https://wordpress.org/support/topic-tag/validate/)
 * [value](https://wordpress.org/support/topic-tag/value/)

 * 2 replies
 * 3 participants
 * Last reply from: [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/no-field-validation/#post-5123511)
 * Status: resolved