Form Validation
Rules
To validate you can just include
data-form="validate"
in the code. And you can add additional rules in each elements.
Some of tested(core) rule:
-
data-rule-required="true" or add attribute
required
-
data-rule-email="true" or add attribute
type="email"
- data-rule-url="true"
- data-rule-date="true"
- data-rule-dateISO="true"
- data-rule-number="true"
- data-rule-digits="true"
- data-rule-creditcard="true"
- data-rule-minlength="6"
- data-rule-maxlength="24"
- data-rule-rangelength="5,10"
- data-rule-min="5"
- data-rule-max="10"
- data-rule-range="5,10"
- data-rule-equalto="#password"
- data-rule-remote="custom-validatation-endpoint.aspx"