extrameile / form-dynamic-recipient
Adds new form select type, which shows recipient records of a given page. This information can be used as dynamic recipient for the form data.
Installs: 4 421
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 4
Type:typo3-cms-extension
Requires
- typo3/cms-core: ^10.4.0 || ^11.5.0
- typo3/cms-extbase: ^10.4.0 || ^11.5.0
- typo3/cms-form: ^10.4.0 || ^11.5.0
- typo3/cms-frontend: ^10.4.0 || ^11.5.0
Requires (Dev)
- phpstan/phpstan: ^1.10
- saschaegerer/phpstan-typo3: ^1.8.4
README
This extension adds simple database records, that can be used to generate a select field in the frontend. The selected option can be accessed with an assigned alias and thus be used as a dynamic recipient, e.g. in the Recipient address field.
Installation
Clone to typo3conf/ext/form_dynamic_recipient
git clone https://github.com/extrameile/form_dynamic_recipient.git
or install via composer
composer require extrameile/form-dynamic-recipient
Configuration
- Create database records with a label and target email address
- add a select field of type Selectable recipient to the form, configure the page to load the values from and the variable to fill with the selected value, e.g.
dynamicRecipient
- Configure the Email to receiver finisher with
{dynamicRecipient.email}
and{dynamicRecipient.label}
- set the form field to required, if you use {dynamicRecipient.email} as the target email address.
Running phpstan
10.4
composer update --prefer-lowest -W
composer run phpstan
11.5
composer update -W
composer run phpstan
ToDos
- validate submitted option to contain a uid from the records of the configured storage page