Last updated November 10, 2011. Created by LinL on December 3, 2007.
Edited by gpk, quicksketch, chrisshattuck, whitingx. Log in to edit this page.
Webform is a module that aids in making various one-off forms such as contact forms, surveys, order forms, reservations, CRM requests, and more.
To install the module, download the module and add it to your sites/all/modules directory. Enable it under /admin/build/modules.
You will now have a new node type called "Webform". From there you simply give the webform a title, description, confirmation message, set up email settings and the like.
Finally, you can add several components (think fields). There are several component types available: fieldset, pagebreaks, grid, textarea, textfield, select (checkboxes, pulldown lists), email addresses and more.
The checkboxes under the "E-mail" header should be checked for each field you want to be included in the email that is sent when the form is submitted. This checkbox does not have to do with validating that field as an email address; that is handled by choosing "email" in the "Type" column.
NOTE: In order to add components, you must first “save” the Webform. Then, under the “Edit” tab, you will see a “Form components” sub-tab; this is how you build your form. Remark: depending on your CSS files, some of these sub-tabs may be invisible, although your cursor would show the link when passing over them.
Screencasts
- View a screencast on how to use the Webform module.
- Another Screencast by Adam Jensen from UNT
- 4 video tutorials on 1) How to create a web form, 2) How the different components work, 3) How to create a single-checkbox input (i.e. for a newsletter) and 4) How to set up e-mail templates
- Un excelente (y largo) screencast en Español
Webform vs. CCK (or D7 Field module)
Webform is not meant to be a competitor or replacement for CCK. It is designed to be used where each Webform node gets its own set of custom fields. This is different from the CCK approach, where it creates content type forms that produce nodes. In fact, you can even combine CCK and Webform to add additional fields to webform nodes! Think of Webform as a solution when you want your end-users (often anonymous) to be able to submit data that you want emailed to a few email addresses or saved to a CSV file.
Webform typically is used when performing data collection that is a one-way communication, that is, many users submitting values to a very small set of administrators. Webform is not a front end for letting users create custom nodes. Webform submissions are not nodes. This means that you can't use Views with submissions, setup custom access permissions to submissions, or do just about anything with them outside of what Webform provides for you.
Webform Components
Webform components are basically the equivalent of CCK fields. You can add any number of fields to a node that an end-user can fill out. All components are included with the Webform module. These include:
- date
- fieldset
- file
- grid
- hidden
- markup
- pagebreak
- select
- textarea
- textfield
- time
To read how to make checkboxes, radio buttons/groups, and menus/lists then read the Webform Field Types portion of this doc.
Theming
The THEMING.txt file included with the module package has guidelines for theming with instructions on how to customize submitted e-mails, confirmation pages, and the display of the form itself.
Comments
Questions, support, bugs
Please do not post questions about Webform, requests for support, or report bugs here. Go to the Webform issue queue and (after searching) post there for support.
Nathan Haug
creative graphic design w: quicksketch.org
& software development e: nate@quicksketch.org
one-off forms
What is a "one-off forms"?
One-off definition
http://www.merriam-webster.com/dictionary/one-off
Nathan Haug
creative graphic design w: quicksketch.org
& software development e: nate@quicksketch.org
User generated content via webform
Hi I am tasked with a project where users enter contents into a form which, once approved by an editor, gets published on the site. I plan to use Drupal but because I am not a coder, am confused what modules to use to achieve this. Can someone help? This is for a environmental NGO which can't afford coders. Any help here will be greatly appreciated. Thanks!
Webform isn't what you are
Webform isn't what you are looking for. You should use cck fields(D6) to build the content type that you need and set "not published" as default. Give the permition to publish content to some people that can search for the latest unpublished content and then publish them.
You can also use a module like this one(D7 only):
http://drupal.org/project/content_approval
REPLACE INTO with single form submission feature?
I wonder what the chances of adding a REPLACE INTO feature to the webform module? The situation I'm dealing with is that I'd like to allow for only one set of data off the webform per user. The user, however, should be able to return to the webform and see previously submitted values for editing... I suppose this can be accomplished in the results tab if they have appropriate permissions but it would be rad if there was a way to configure it under form settings and avoid them having to edit previous submissions? To clarify, my concept would simply require adding a replace into configuration option, where the default values would be filled from the DB if the user had previously submitted the form. Of course it would only be useful if the "Submission limit" was set to 1, so there would only be one set of data per user... The way it is now, I could set the submission limit, but the user experience is less than intuitive regarding the presumption that they'd go to the results tab to update their info.
Thank you!
~JI
Compound Form Items
What would you recommend if you need to build a form field type which would allow the user to input multiple field sets in tabular form for the same "question".
For example, a budgetary items:
Each item has a name, description, cost, qty, subtotal
The user can ADD/DELETE multiple items
Can this be achieved using WEBFORMS?