• Resolved elieelia9

    (@elieelia9)


    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)
  • 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

    (@elieelia9)

    @wpdev10 Thanks for your reply Patrick. Where can I find the ‘uwp_validate_result’ filter?

    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

    Hi,

    We have added this functionality and will be available in the next plugin update release.

    Regards,
    Patrik

    Thread Starter elieelia9

    (@elieelia9)

    Hi @wpdev10 , when is the next plugin release happening?

    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

    Regards,
    Patrik

    Thread Starter elieelia9

    (@elieelia9)

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

    Hi,

    It’s not added yet but will be added later soon.

    Regards,
    Patrik

    Hi, has validation been added to the current release? Thanks.

    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

    I am looking forward to this feature too.

    Plugin Contributor Paolo

    (@paoltaia)

    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.