Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

views_contact_form

378 sites Security covered
View on drupal.org

Use cases

  1. You need to create a block, an attachement or a page with a custom URL with a contact form inside that will send an email to a particular person (the value of the recipient is taken from any field you want), you will use this module, Views and/or Panels.
  2. You need to create block that will send an email to the author of a content.
  3. You need to create block that will send an email to an email field, referenced through a reference in another content.
  4. Instead of displaying an email field as an email link (with mailto:), display a contact form instead and the value of the recipient is the value of a field.

This module provides

  1. A new Views style which display a contact form, in a block, a page or an attachement. Recipients are taken from a field you define.
  2. A new Views handler "Contact form" for the default "User:email" field. So you can display a contact form that will send an email to the user when submitted.
  3. A new formatter when used with the Email Field module to display the contact form.
  4. A submodule to hook into Honeypot
  5. A submodule to hook into Mollom

Dependencies

  1. Views module (optional)
  2. Email Field module (optional)
  3. Honeypot
  4. Mollom

Help

You should check the screenshots, it's quite self-explanitory, or use the issue queue!

FAQ

  • Q: Are these screenshots from D7 ?
    A: Yes, it's Drupal 7 and the Navbar module.
  • Q: When I choose the "Views Contact Form" display style in my view, it doesn't work.
    A: Make sure to disable the checkbox "Display all values in the same row" in the "Multiple Field Settings" fieldset of the email field. (See this issue)
  • Q: Does it works with captcha ?
    A: Yes, the form id to use is: views_contact_form_contact_form.

TODOs

  1. Use the default Drupal's contact form to generate the form.
  2. D8 version
  3. Write documentation and video tutorial for newcomers.
  4. Improving code.

Ideas for the future

  • Use CTools plugin system to add other forms into the list ?

Activity

Total releases
1
First release
Apr 2025
Latest release
1 year ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
2.0.3 Stable Apr 12, 2025