Hey there..
How does one provide for strict email validation on a custom form so that anything with a weird domain extension is rejected? For example .coom or .neet.
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
Hi,
There are a number of approaches to this.
One option is to check the string using Regular Expressions
To implement this method you will have to provide a list of acceptable extensions as a regular expression.
https://support.wix.com/en/article/wix-code-working-with-user-input-validation-in-the-settings-panel
Another option is to implement an email verification process as described below.
This is the recommended option since it also verifies that the user has access to the specified mailbox.
Check out the example code here
https://www.wix.com/code/reference/wix-users-backend.html#register
Search for "Register a user sending an email for confirmation"