Title: Field Validation Rules
Last modified: June 1, 2020

---

# Field Validation Rules

 *  Resolved [elieelia9](https://wordpress.org/support/users/elieelia9/)
 * (@elieelia9)
 * [6 years ago](https://wordpress.org/support/topic/field-validation-rules/)
 * Hi there,
 * Is it possible to add validation rules to a certain field in my registration 
   form?
    EX: I want the usernames to be restricted to a maximum of 7 characters(
   3 digits and 4 letters)

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

 *  [Rahul Gandhi](https://wordpress.org/support/users/wpdev10/)
 * (@wpdev10)
 * [6 years ago](https://wordpress.org/support/topic/field-validation-rules/#post-12924469)
 * Hi,
 * Yes, you can do that using some customization. You can use the ‘uwp_validate_result’
   filter to check for the condition and return the WP_Error() object so it will
   display the error on the form.
 * Regards,
    Patrik
 *  Thread Starter [elieelia9](https://wordpress.org/support/users/elieelia9/)
 * (@elieelia9)
 * [6 years ago](https://wordpress.org/support/topic/field-validation-rules/#post-12927947)
 * [@wpdev10](https://wordpress.org/support/users/wpdev10/) Thanks for your reply
   Patrick. Where can I find the ‘uwp_validate_result’ filter?
 *  [Rahul Gandhi](https://wordpress.org/support/users/wpdev10/)
 * (@wpdev10)
 * [6 years ago](https://wordpress.org/support/topic/field-validation-rules/#post-12928100)
 * Hi,
 * You will find this filter in the class-forms.php file from the userswp/includes
   folder. Make sure you check for the conditions as this same filter used for multiple
   forms validations.
 * Regards,
    Patrik
 *  [Rahul Gandhi](https://wordpress.org/support/users/wpdev10/)
 * (@wpdev10)
 * [6 years ago](https://wordpress.org/support/topic/field-validation-rules/#post-12941754)
 * Hi,
 * We have added this functionality and will be available in the next plugin update
   release.
 * Regards,
    Patrik
 *  Thread Starter [elieelia9](https://wordpress.org/support/users/elieelia9/)
 * (@elieelia9)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/field-validation-rules/#post-13025833)
 * Hi [@wpdev10](https://wordpress.org/support/users/wpdev10/) , when is the next
   plugin release happening?
 *  [Rahul Gandhi](https://wordpress.org/support/users/wpdev10/)
 * (@wpdev10)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/field-validation-rules/#post-13027937)
 * Hi,
 * The update will take some time but if it is urgent for you then you can get it
   from our git [https://github.com/UsersWP/userswp](https://github.com/UsersWP/userswp)
 * Regards,
    Patrik
 *  Thread Starter [elieelia9](https://wordpress.org/support/users/elieelia9/)
 * (@elieelia9)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/field-validation-rules/#post-13389369)
 * [@wpdev10](https://wordpress.org/support/users/wpdev10/) Hi Patrik,
 * Have the validation rules been included in the new plugin release? I can’t seem
   to find any settings to apply validation on in the field settings.
 *  [Rahul Gandhi](https://wordpress.org/support/users/wpdev10/)
 * (@wpdev10)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/field-validation-rules/#post-13391219)
 * Hi,
 * It’s not added yet but will be added later soon.
 * Regards,
    Patrik
 *  [woorooo](https://wordpress.org/support/users/woorooo/)
 * (@woorooo)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/field-validation-rules/#post-13966634)
 * Hi, has validation been added to the current release? Thanks.
 *  [Rahul Gandhi](https://wordpress.org/support/users/wpdev10/)
 * (@wpdev10)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/field-validation-rules/#post-13985404)
 * Not yet, Please allow us some time to finish the ongoing functionalities first.
   You can check the Changelog in the readme.txt file as we will add a log for the
   same once we release this functionality.
 * Regards,
    Patrik
 *  [jemar707](https://wordpress.org/support/users/jemar707/)
 * (@jemar707)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/field-validation-rules/#post-14203724)
 * I am looking forward to this feature too.
 *  Plugin Contributor [Paolo](https://wordpress.org/support/users/paoltaia/)
 * (@paoltaia)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/field-validation-rules/#post-14203820)
 * Hi,
 * we are working on the release of the Groups add-on, we will tackle this request
   right after that.
 * Thanks for your patience,

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

The topic ‘Field Validation Rules’ is closed to new replies.

 * ![](https://ps.w.org/userswp/assets/icon-256x256.png?rev=2784318)
 * [UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WP](https://wordpress.org/plugins/userswp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/userswp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/userswp/)
 * [Active Topics](https://wordpress.org/support/plugin/userswp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/userswp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/userswp/reviews/)

 * 12 replies
 * 5 participants
 * Last reply from: [Paolo](https://wordpress.org/support/users/paoltaia/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/field-validation-rules/#post-14203820)
 * Status: resolved