Drupal Cms

Dec
9
2009

Add Extra Fields in Drupal Contact Form

First Drupal Module!

This module will give you extra fields integrated into your drupal sitewide contact form, and include it into your email, configurable from Drupal Administration.

There are two options for adding a phone number. The first is a required field, which is added just below where the user enters there email. The second, gives 2 check boxes, in response to how they would like to be responded to (email or phone), and if they check reply via phone, a new text input slides down with jQuery for the user the place the phone number into. This was the original idea, and purpose of this whole project, since I found what I believe was a Wordpress plugin that did something very similar on another website, and decided to replicate it into Drupal.

A third option, allows you to choose a title, and add an additional text field. It has been defaulted to 'Company Name' as I couldn't seem to think of anything else at the time.

  • Working demo here
  • Download it here (Drupal 6)

If you would like any additional changes or extra options, let me know, and ill get back to you!