[Drupal] How to add custom contact form using webform module
Webform module is a perfect solution, if you are looking for a more complex contact form or multiple feedback forms to add to your Drupal 7 website. This module will enable you to create and manage as many forms as you need. Recently, we had a need to create three different feedback forms for a Drupal website. One of the webforms was a contact form to connect with different contact persons of the company where as, another one was to send enquiries about the products and there was a guest book page to leave feedback. Here is how we achieved all these requirements in one shot using the webform module.
Steps for installing and configuring webform module
Step 1: Download webform module
- Download webform module to your local machine (Download)
- Decompress the file
- Copy the module to your 'sites/all/modules' directory
Step 2: Enable webform from modules Page
- Goto Administration » Modules
- Find the webform module
- Enable it by checking the box
- Save the changes
Step 3: Create and configure webform
- Goto Administration » Add content
- Click on 'Webform' link
- Enter title and add a menu link
- Now, add 'form components' for your form
- Then click on 'E-mails' tab and set emails
- Finally make necessary form settings
- Save the changes
Now, you can use this form by clicking the menu link from the main menu. By repeating the third step, we can create multiple forms for the site.