This excample shows a number of validations:
The name must be 3 to 10 Characters long!
The mail must be in mail format and the web adr. must be ftp or http etc.
The form will only be send if validation succeed!
This form has an regExp that limit the first password to the following conditions: Min 6 characters. Min. one number one lower case on capital letter
The Regular Expression used is: '^.*(?=.{6,})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).*$',
Only the "confirm password has data-dojo-props="type:'password'" that is because this is for testing only!
Note: The <form> element must contain a data-dojo-id othervice the form.getValues() wont work!