Following are my quickie notes about the must use Webform module. Whether your needs are a simple Email signup, contact form or for more complex submissions Webform is likely where you will start.
The Drupal Webform module adds a webform node type to your Drupal site. Webforms can be used as newsletter signups, questionnaires, contact/signup/request forms, surveys, polls or a front end to an issue tracking system.
Submissions from a webform are saved in a database table and can optionally be mailed to a nominated e-mail address upon submission. Past submissions are viewable/downloadable for users with the correct permissions.
Use:
• Drupal Webform module: http://drupal.org/project/webform
• Download: http://drupal.org/project/webform
• Read: ./webform/README.txt
• Enable: Other >> Webform
• Configure: Administer › Site configuration › Webform
- /admin/settings/webform
• Create a webform node: Create content > Webform.
- add each form component, there are more than just forms here
- note: on specific webform: Form settings > Advanced Settings > √ Available as block
• Manage submissions: Administer › Content management › Webforms
- /admin/content/webform
- alternately: via the "Results" tab on the contact page
additional modules or not:
• processing and validation have now moved to Webform PHP module
• the Webform Block module is now built-in to Webform.
Notes:
• trigger an action of successful submit
- implement of hook_form_alter() to add your own function to the successful validation of the form
- ? what about using the Webform PHP module?
• to add CAPTCHA
- install CAPTCHA module
- in CAPTCHA config: select "Add CAPTCHA administration links to forms"
- then on the form itself as Admin we can set a CAPTCHA on the form and adds it to the settings
- alternately by naming the form_id you can do it yourself
• php to display webform in a block as per: http://drupal.org/node/248157#comment-812158<?php
$node = node_load($nid);
$node->title = NULL;
print node_view($node);
?>
• on upgrade 6.2 -> 6.3
- cant downgrade
- additional processing and validation have now moved to Webform PHP module
- previous validation or email template changes will need to be updated
- the Webform Block module is now built-in to Webform.
Recent comments