Advanced Validation
URL validation, date validation, min/max constraints, and field comparison rules.
Live Demo
Source Code
On this form
- • Return errors using
error-show-text:[field_name] - • Add validation using
sf-validate:[type]sf-validate:url- Validates URL patternsf-validate:active_url- Validates domain actually existssf-validate:boolean- True/False 1 or 0sf-validate:min[value]- Number cannot be less thansf-validate:max[value]- Number cannot be more thansf-validate:in[val1,val2,..]- Exact result requiredsf-validate:after[date]- Date validation aftersf-validate:same[other_field]- Ensures two fields matchsf-validate:accepted- True, yes or 1