All Collections
Instructions
How to Add Custom Validation/RegEx to the Registration Fields?
How to Add Custom Validation/RegEx to the Registration Fields?
Add special rules to the registration fields of your SpringBuilder website
Anna Poghosyan avatar
Written by Anna Poghosyan
Updated over a week ago

A strong user base will define the strength and longevity of your website. But before acquiring valid users, you need to verify that the data submitted from the registration form corresponds to your requirements. To make this process easy, SpringBuilder has a special option to add custom validations to each registration field.

To add your special requirements, go to the User Account settings > Form > Registration Fields, choose the corresponding field and in the settings turn on the Custom Validation switcher.

Here are some RegEx examples you can add to the registration fields of your website:

1. This validation indicates that only letters and numbers are allowed:

regex:/^[a-zA-Z0-9]*$/

2. One or more numbers are allowed with this RegEx:

regex:/^\d{1,}$/

3. For adding the email validation, use this RegEx:

regex:/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/

Rules may vary with the validation you add to the fields. ๐Ÿ’ก

For any further questions or concerns you may have, please visit the SpringBuilder Help Center for more information.

Did this answer your question?