• Resolved IID_Suzi

    (@iid_suzi)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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; 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/

    Thanks in advance!

    Gerson Medeiros

    Plugin Author Chad Butler

    (@cbutlerjr)

    You can hook custom field validation to the wpmem_pre_register_data action.

    For @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.