Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: pjcdawkins commentedNew patch which deals with entities.
Comment #2
pjcdawkins CreditAttribution: 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 CreditAttribution: 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.