Contact Formatter - Manage entity display

This module adds a field formatter to display a rendered Contact form from Drupal 8 core's Contact module using an entity reference field on an entity.

Contact forms are entities, and thus fieldable in Drupal 8. However, the core functionality does not include a field formatter to display the forms. This module provides that functionality.

Installation:

  • Ensure core's Contact module is enabled.
  • Install this module as you normally would.
  • Add a Reference field of type other to your content type or entity.
  • Select Contact form from the "Type of item to reference" select list. Hint: It's under "Configuration", not Content.
  • Set the default values if so desired and save.
  • Go to your entity's Manage form display screen and you can display the field to your administrators using Autocomplete, Checkboxes, or a Select.
  • Go to your entity's Manage display screen and choose Rendered Contact Form for the format.
  • You are now ready to add contact forms to your entity!

Use in combination with Paragraphs and Inline Entity Form to allow your admins to quickly and easily add Contact forms where ever they need to!

Supporting organizations: 

Project Information

Downloads