The Webform Module for the Open Source Drupal Content Management system is an easy to use, easy to configure Form Builder for your Drupal website that works well with any Drupal Theme. Without any knowledge of HTML/CSS or PHP, you can create complex web forms or questionnaires on your website in a very short period of time. Once installed and configured here’s how easy it is to create web forms for your Drupal website.
Step 1 Create Webform
After logging into your Drupal administration, Create New Content and click on “Add Webform”. Here you will give your form a name, add the email address that you want the information to be submitted to, as well as a few other basic settings for customization. You can use the Description section to place any HTML that you want above the actual form when visitors are viewing it. You can also set permissions on the form, in case it’s a form that you only want registered users to view.

Step 2 – Build the Form
After you Submit your new webform you will then be taken to a screen that allows you to then build your actual form. What you do here is begin to create your fields. You can create text fields, text areas etc. You can make the field mandatory if needed, as well as assign a weight so that you can ensure each field is in the order you desire.

Your Webform acts as it’s own individual Node with Drupal. Because of this each webform you create has it’s own URL which you can use to reference to anywhere on your website. Remember, there is no limit to how many webforms you can create on your Drupal site with this module. And each form can have it’s own custom fields, as well as it’s own custom settings such as who it gets sent to etc…

robnardo
August 26, 2008
does anyone have an example of webform-form-[node-id].tpl.php that they can share? I started a thread on Drupal http://drupal.org/node/299782
james
September 14, 2008
nice tutorial..
keep it up..
http://drupalranch.com
Tony
November 20, 2008
I have an existing web form on my site. I want to create a welcome page with the same text fields and and send the info to the same drupal database for this webform, but the welcome page will be an HTML/CSS stand alone page. Is it possible to do this and how do I find the database to send the info to?
Richard
August 26, 2009
Good tutorial. It’s a great module. I’m using it to solve the multiple contact form problem in Drupal (as in, you can’t have more than one). Much better than Contact Forms as I can have categories within each form and have multiple languages too.
However, can I remove the database stuff entirely. I simply want to send the message which is in my text area to the defined email account, hence, I see no need for any database record.
Farcon
October 28, 2009
can I create a payment membership registration with this module.
if anyone can help it will be great.
Luke
October 31, 2009
Does anyone know how to limit the size of textarea ? And i don’t mean size od the window. I mean the lenght of the message.
Nyleve
November 15, 2009
Farcon, you can create a payment membership registration with ubercart and roles.
Lawrence
January 3, 2010
I don’t know why but the form created have a line showing date and my name.
How can I disable it? I don’t want to use css to hide it..it’s not eligate
“4 January 2010 – 3:54am — Lawrence”
matt
February 12, 2010
Lawrence, Your Theme is displaying that line. you can just delete it from your node.tpl.php (or similar) file in your theme
Pete
February 17, 2010
Lawrence,
An alternative for removing from the node output: “4 January 2010 – 3:54am — Lawrence”
On the Administer > Site Building > Themes > Configure page (/admin/build/themes/settings)
you’ll see the ‘Display post information on’ section, just unclick the ‘Webform’ checkbox.
Tejas
April 20, 2010
Hello,
Nice Tutorial. I found your blog very information.
In your 2nd image @ Building Form there are fields type. Do you have links or some useful information that at what time this type of information will be used ? Like if i am creating First Name than i will use textfield and for Date of Birth i will use date.
I hope my question is clear.
and keep this good work.
drupaler
April 22, 2010
great tutorial. It is a great module I think.
Suren
May 13, 2010
Hi,
I have few training programs and i want to create a webform for the users to register for any training program. The link to the webform will be for every training program and when user click on that link he will be taken to the registration form displaying the program title from which he clicked the link.
Do u guys know whether i can achieve this using webforms or is there any other module for this.
lance
May 14, 2010
Hi there! great tut. One question and I’m not sure if anyone has encountered this.
I set up a webform on my drupal site and when I hit submit – it prints out the array of information instead of the message or redirect(which I tried as well). I saw on Drual that another user had this problem but was directed to disable the debug portion. Well i did that but still having problems. I was just wondering if anyone had this situation at one point or another and would so kind to help.
Thanks!
lance
May 14, 2010
Got it. there must have been some conflict with the contact form mod. Just disabled it and it worked like a charm
Ibrahim
June 23, 2010
Thanks, but I was expecting more on the topic. For example how to query the different values of the submitted form, etc. Does anyone have any idea?
Thanks,
Gary
October 4, 2010
Thanks for the Tutorial
Could tell me how/or where I could find a tutorial on how to create a HTML formatted email response containing the values from the form?
Thanks
Santosh Thakur
October 20, 2010
Someone Plz tell me how to get dynamic value in the selectbox of webform in drupal
Charles Bannister
December 21, 2010
Please help!
When I go to Create Content, it isn’t there.
Is that because this is a tutorial for an old version?
I have enabled it, but where do I:
A: Add fields to the form.
B: Make the form appear on the site?
P.S The site isn’t the one in question.
Ta!
Charles Bannister
December 21, 2010
Never mind!
In response to above.
It’s working fine, had to tick a box in the settings.
My Bad!
WEB DESIGNER Sri Lanka
January 8, 2011
Is there a toolthat cpuld be used to geberate form components for drupal
The form builder on drupal site is not working for me
Help
January 10, 2011
Is there an add on that provides you with more options to improve the user interface. I want to add things like different shapes of buttons, a sliding bars to indicate preference instead of just check boxes for non discrete variables, different colors for different questions?
Tim
September 23, 2011
Here is a short howto I wrote on getting custom code to run with Webform.
It details writing a custom module, copying the Webform template to match the nodeID, and adding custom javascript/jquery for form processing.
http://docs.quantact.com/drupal-webform-custom-php-code
Chase
September 24, 2011
@Tim thanks for putting this together! I walked through the tutorial and it was perfect.