Drupal Technical
[Drupal] How to add a Contact Form in Drupal Sites
If you are looking for a simple contact form for your Drupal 7 website, just follow the steps below else skip to the bottom of this article for a bit more complex solution.
Drupal 7 comes with its own contact form and you can enable it in a few simple steps.
Step 1: Enable the contact module
- Go to Administration » Modules
- Find the Contact module under core modules
- Enable it by checking the box
- Save the changes
Step 2: Create the contact categories to display a drop down list of 'Categories'(If required)
- Go to Administration » Structure » Contact form
- Click on 'Add Category' link
- Enter category name, recipient's email id, auto-reply and so on
- Save the changes
Step 3: Grant access permissions
- Go to Administration » People » Permissions
- Find the "Contact module" entry
- Enable 'Use the site-wide contact form' option for anonymous user
- Save the changes
Step 4: Create a menu item for Contact page
- Go to Administration » Structure » Menus
- Click on the link - 'add link' corresponding to 'Main Menu'
- Enter menu link title, path ("contact")
- Save the changes
If you need a more complex contact form or multiple feedback forms check out for Webform module. This module will enable you to create as many forms as you like.