Written on August 18, 2008 at 11:24 pm by Chase Sagum

How to Use Webform Module for Drupal

CMS, Web Development 11 comments

The Webform Module for the Open Source Drupal Content Management system is an easy to use, easy to configure Form Builder for your website. 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…

11 responses to " How to Use Webform Module for Drupal"

  1. robnardo on 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

  2. james on September 14, 2008:

    nice tutorial..
    keep it up..

    http://drupalranch.com

  3. Tony on 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?

  4. Richard on 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.

  5. Farcon on October 28, 2009:

    can I create a payment membership registration with this module.

    if anyone can help it will be great.

  6. Luke on 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.

  7. Nyleve on November 15, 2009:

    Farcon, you can create a payment membership registration with ubercart and roles.

  8. Lawrence on 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”

  9. matt on 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

  10. Pete on 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.

Leave a comment

Get Adobe Flash playerPlugin by wpburn.com wordpress themes