The 'min_words' and 'max_words' validators don't work for HTML textareas. The attached patch allows them to.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webform_validation_html_words-1943140-2.patch | 2.64 KB | pjcdawkins |
| #1 | webform_validation_html_words-1943140-1.patch | 2.65 KB | pjcdawkins |
| webform_validation_html_words.patch | 2.03 KB | pjcdawkins |
Comments
Comment #1
pjcdawkins commentedNew patch which deals with entities.
Comment #2
pjcdawkins commentedRemoved redundant [] in regex.
Comment #3
liam morlandThanks very much.
http://drupalcode.org/project/webform_validation.git/commitdiff/e9c47a0
http://drupalcode.org/project/webform_validation.git/commitdiff/ebeccd8
Comment #4
pjcdawkins commentedNow I'm looking at it again, I think we should use str_word_count(). A little follow-up issue for that: #2029435: Use str_word_count() to count words
Comment #5
liam morlandComment #6
liam morlandDrupal 6 is no longer supported.