How to validate a string and/or a regular expression
Permalink
C5 allow a basic validation for required form field, integer, mail.
But it seems that no methods are available for validating alfabethical strings or moreover regular expression.
Does anybody know how to do it without patchwork of validation library
thanks
But it seems that no methods are available for validating alfabethical strings or moreover regular expression.
Does anybody know how to do it without patchwork of validation library
thanks
Then either statically calling it or creating a new method, this awesome validation class can also inherit from and extend the existing validation class via loading it on line 1 right after the opening tag and adding your new methods for whatever validation you want.
You can also use jquery Validation if you are doing stuff in the dashboard, all of the interface helper submit buttons require javascript so you can assume that if you do your forms correctly your javascript validation will fire before the form actually submits, though the controller validation is more predictable.
hope...that helps?