zaneray / scrupulous

Simple inline form validation using HTML5 attributes that plays nicely with Bootstrap
GNU General Public License v2.0
13 stars 4 forks source link

No way to enforce minlength attribute for textarea fields #4

Open ajdinstel opened 10 years ago

ajdinstel commented 10 years ago

There is no way to define a minimum length requirement for a text area.

Max length can be setup and correctly validated using "maxlength='x'", but minlength is not supported.

We either need to add custom JS to look for minlength attribute, or we could also use the "pattern" attribute to validate the input length, e.g. pattern=.{50,}. Currently the 'pattern' solution does not work because there is no pattern validation for textarea fields.