guave/formrecipient-bundle

Adds the function to take the email recipient from a form field

1.1.0 2024-06-19 14:31 UTC

This package is auto-updated.

Last update: 2024-11-11 15:39:41 UTC


README

This bundle allows you to set the recipient of a form dynamically, based on a form field.

Requirements

  • Contao 4.13+
  • PHP 7.4 or 8.0+

Install

$ composer require guave/formrecipient-bundle

Usage

  • Add a form field of type "Protected Select Menu"
  • Add your recipient emails as the value and a name of your choice as the label and reference
  • Set the form recipient as {{form::name}} where name is the field name of your "Protected Select Menu"