3

I need to develop a contact form that the administrator can reply to and categorize each message (Responded, Transferred, Archived, etc.) received from users.

Which would be the best approach for this?

2 Answers 2

2

Here are multiple options for implementing such contact form, as further details below.

Default contact form (D6 or D7)

This is the contact module that comes with Drupal 7 core (though disabled by default). Typically used by Drupal newbies, and commonly known to have quite a few limitations / issues that can be resolved using some of the contributed modules (mentioned below).

Webform (D6 or D7)

The Webform module is the traditional (and mature) solution used in quite a few (close to 500K) sites. Some details from its project page:

... for making forms and surveys in Drupal. After a submission, users may be sent an e-mail "receipt" as well as sending a notification to administrators. Results can be exported into Excel or other spreadsheet applications. Webform also provides some basic statistical review and has an extensive API for expanding its features.

Note: It also has 2 related charting modules, i.e. Webform Chart and Webform Charts, both integrate very well with the Webform module to provide charts about data created via the Webform module.

Entityform (D7 or D8)

The Entityform module is a fairly new solution used in "only" about 18K sites, and only has an RC1 release so far. Some details from its project page:

... enables you to create front-end forms (fieldable entities), which contain fields that you define! These forms use the standard Drupal fields. This means that out of the box, you can use any standard Drupal node field! As of the time this article was written, there were over three hundred "field" modules. And since Entityforms are "Drupal entities", you will automatically be able to use future "field" modules!

The forms can be used to create custom surveys, petition, and personalized contact forms, and other customized form. (For those of you who have used Webforms, this module brings Webform's functionality into the "standard" Drupal field / entity world.)

Note: in D8 renamed to eForm (to avoid name confusion).

Contact forms in D8 core with the Contact Storage module (D8)

This is the contact module that comes with Drupal 8 core (enabled by default now).

Many more details about this can be found in the article about "Goodbye Webform? Contact Forms Are In the Drupal 8 Core", which explains why you will also need the Contact Storage module:

The one key feature that's missing with the Contact module is the ability to store messages sent through the forms. This is odd, because Drupal 8 deals with contact messages as entities. You can add comments to them, for example. You just can't see them!

To solve this problem, you'll need a contributed module called Contact Storage. The author says they hope to have this in core for Drupal 8.1 and that would make a lot of sense, filling this functionality gap.

Some details from the Contact Storage project page:

... will provide storage for Contact messages which are fully-fledged entities in Drupal 8.

This plus core contact module aim to provide functionality equivalent to the base-features of Webform or Entity Form.

The goal is to firm up this functionality in contrib with view to move into core in 8.1.x or later.

0
1

The default contact form module has some limitations interms of flexibility. You can use webform or entityform (in case you are using Drupal 7) which has so many features.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.