number of characters allowed
Published by rightchoice2c_me on July 3rd, 2009 in Drupal Modules
Can anyone tell me how to de-restrict the number of characters allowed for each question when using the webform module. At the minute it is limited to 128 chars, but I really need to increase this as I am building a fairly complex form which requires explanations at each question. I've had a look within the module but can't see where this is defined.
Any help is much appreciated, cheers.
drupal_developer on July 03rd 2009
in webform module lookup for webform_components.inc file there is a hook in it called webform_component_edit_form
there you can change the lengths, but I suggest you not to follow this approach.
If you know how to write drupal modules then its better you write a module and call hook_form_alter and change the length of label field in that.
This approach will prevent you from making changes again in webform module webform_components.inc file when you upgrade webform module.