Contact Plus augments the core Contact module with several features.
- Allows redirection of the user (the form submitter) to a custom path, per category, for the site-wide contact form.
- Allows redirection of the user to a custom path based on tokens for the user contact form.
- Allows for disabling/hiding of form elements on both types of core contact forms - if you have an all-anon user base or all-auth or a mix, there is a combination available to trim down the amount of fields required to get from empty form to submission ASAP, or simply hide fields that aren't required in certain circumstances.
- New in 7.x-1.2 - Added support for page titles on both forms
- New in 7.x-1.1 - Added token support for redirect paths
Contact Plus adds one additional field to each category settings page. On this page you will now find a "redirect path" field. Here you can set the Drupal path to redirect to when the form is submitted. This enables an administrator to ensure that the end user is presented with information that is pertinent to the category they have submitted the form with. This is useful for presenting "extra info" pages such as targeted sales information, for example.
Contact Plus adds an additional tab, "Settings" to the contact module's default configuration. There are two tabs within this - one for the site-wide form, and another for the user form. The site-wide settings here are one-time only - they work for all categories. These are as follows.
Page title - set the H1 and title tags manually.
Introductory text - add an arbitrary block of text above the contact form.
For "Alter name field" and "Alter sent-from address" there are several options:
- 1 - Leave the name field as per default
- - Leave the name field on the form, make no alteration.
- 2 - Make the name field visible but not editable
- - Leave the name field on the form, but grey it out - the form element is not editable.
Useful if your site uses only authenticated users, or only authenticated users can
use the contact form. These users always have a default value set in the name field.
- 3 - Make the name field visible but not editable, but only if the field already has a value
- - Same as 2, but if the field has no default value (ie you're allowing anonymous users to use the contact form) then display the blank field.
- 4 - Hide the name field completely
- - Same as 2, but remove the form completely instead of displaying it greyed out.
- 5 - Hide the name field completely, but only if the field already has a value
- - See 3 & 4 :)
The other two options are "remove subject field" and "remove copy option". The first checkbox, when selected, will completely remove the subject field (not sure why you'd want to - maybe just make the form as short as possible?) Note that a value will still be placed in the subject field (that of [category name]) so the email is perfectly valid. It simply removes the extra option. The second checkbox naturally removes the option to send an extra copy to the user of the form. Some people just don't want that option available.
In the user contact form configuration, we again firstly have the page title field, should you wish to change the H1 and title of the form page. Then there is a path field. This can be filled with a static or token-based path (requires token module) to redirect the user to on submission of the form. The remainder of the settings in that tab are almost identical to those on the site-wide configuration tab. The exception is the addition of another checkbox option to remove the "copy to" element from the form.
NB There is an existing D5/6 module called http://drupal.org/project/contact_redirect which is now out of date. I originally wrote similar code several years ago and just recently found and updated it. This module supercedes that one as it adds a lot of new features.
Drush users:I previously had some issues with the nomenclature (specifically, the case of the name) - the module may need to be downloaded using the case-sensitive command
drush dl ContactPlus because of how I named the module initially. The unfortunate price of vanity - a lesson learned.
It should also be noted that little emphasis has been placed on internationalisation or translation thus far in this module.
- Maintenance status: Actively maintained
- Development status: Under active development
- Reported installs: 391 sites currently report using this module. View usage statistics.
- Downloads: 3,992
- Last modified: January 30, 2015
- Stable releases are covered by the security advisory policy.
Look for the shield icon below.