Views Contact Form
Component ID
2028907
Component name
Views Contact Form
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
12884
Component created
Component changed
Component body
Use cases
- 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.
- You need to create block that will send an email to the author of a content.
- You need to create block that will send an email to an email field, referenced through a reference in another content.
- 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
- 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.
- 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.
- A new formatter when used with the Email Field module to display the contact form.
- A submodule to hook into Honeypot
- A submodule to hook into Mollom
Dependencies
- Views module (optional)
- Email Field module (optional)
- Honeypot
- Mollom
Drupal 8
I'm still learning Drupal 8, here's a couple of functionnalities working in the D8 version ! Try it !
- Email formatter
- Contact categories are entities and so, you can add field and/or update form display to your Contact form and place it wherever your want with Views !
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
Use the default Drupal's contact form to generate the form.D8 version- Write documentation and vidéo tutorial for newcomers.
- Improving code.
Ideas for the future
- Use CTools plugin system to add other forms into the list ?
