我对drupal比较陌生。我安装了webform模块和webform验证模块。我能够使用webform验证来限制webform textarea中的字符数。但是,该模块不支持字段的字符计数器。我已经看过这个解决方案http://drupal.org/node/1459650#comment-5699952,它使用maxlength模块,但它很不清楚。webform textarea的字符计数器drupal 7
我打算编写一个模块实现hook_webform_component_info_alter(&$components)
来将jquery或javascript添加到webform textarea字段。这是一个正确的方法。如果是这样或者如果不是,我会怎么做呢?
非常感谢您
这个问题在这里解决:http://drupal.stackexchange.com/questions/90047/how-to-actually-set-a-maxlength-for-textarea-field-in-contact-form – Duncanmoo