PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

How to set a minimum length for a username

  1. I've got the username set up as a text field but there doesn't appear to be a way of setting a minimum requirement for the number of characters.

    I'd also like to be able to restrict the characters to alphanumerics and can't see a way of doing this either.

    I think I must be missing something as these are pretty normal requirements. Any pointers gratefully received.

    Posted 7 years ago on Monday December 17, 2012 | Permalink
  2. You can use the gform_validation hook to enforce your username rules.

    http://www.gravityhelp.com/documentation/page/Gform_validation

    Posted 7 years ago on Monday December 17, 2012 | Permalink