Adding a Drupal Site Contact Form - dummies

Adding a Drupal Site Contact Form

By Lynn Beighley, Seamus Bellamy

An important addition to most websites, especially ones offering products or services, is a contact form. This would allow your Drupal site visitors to ask for more information without having to locate an e-mail address on your site and send you a message.

Contact forms can also be constructed to allow certain types of messages to be sent to specific people on your staff. The contact form has a Category drop-down list that allows visitors to select from a list of topics.

For example, if you have a storefront and an employee in charge of shipping, you can create a contact form that, when submitted, sends the contents directly to the right person on your staff. The same contact form can be sent to your website administrator.

To create a contact form, follow these steps:

  1. Click Modules on the Dashboard menu bar.

  2. Select the Contact check box.

  3. Click Save Configuration.

  4. Choose Structure→Contact Form.

  5. Click the Add Category tab.

    This opens the Contact Form overlay.


  6. For category, enter a subject that you think someone would like to contact you about.

    For example, enter Product Information. You’ll have the chance to enter more categories later.

  7. In the Recipients text box, enter the e-mail addresses, separated by commas, of everyone you want to receive the results of this form when a user submits it.

  8. If you want users to be sent a message after they submit the form, fill in the Auto-Reply text box.

  9. If you think the category you entered in the Category text box is the most common one users will choose, select Yes in the Selected drop-down list.

  10. Click Save.

    You return to the Contact Form list page.

To add more categories or subjects to your contact form, repeat Steps 1 through 10.

You now have a contact form.


To view yours, go to For example, ours is located at

The last step is to provide visitors to your site with a link to this form. To add a link to your Main menu, follow these steps:

  1. Choose Structure→Menus.

  2. Click List Links to the right of Main Menu.

    You will see a list of your current main links. You need to add a new one for the contact form.

  3. Click Add Item.

    This opens the Add Item form, as shown.


  4. In the Path text box, enter contact.

  5. In the Menu Link Title text box, enter the text you want to appear in your primary menu as the link to the contact form.

  6. Click Save.

Your contact form will now be available to registered users.

If you want to make your contact form available to both registered and unregistered users, you need to change the permissions:

  1. Click People on the Dashboard menu bar and then click the Permissions tab.

  2. Locate the Contact module and select the Use the Site-Wide Contact Form check box under the Anonymous User column.

  3. Click Save Permissions.