« Return to the main article
Hi Peter.
The email validation is a regular expression in the code. You can either edit that regexp or create a new one like this:
{name: "myEmailField", type: "regex", pattern: /hotmail.com/, message: "Hotmail not allowed"},
For the spaces you'll have to learn a bit more about reg expressions.
Jake
Hi Peter.
The email validation is a regular expression in the code. You can either edit that regexp or create a new one like this:
{name: "myEmailField", type: "regex", pattern: /hotmail.com/, message: "Hotmail not allowed"},
For the spaces you'll have to learn a bit more about reg expressions.
Jake