Hello,
How can I create a contact form with a list field to let select the recipient of the message ?
For example :
- commercial (-> commercial@mail.ext)
- technical (-> technical@mail.ext)
Thanks for your help.
Hello,
How can I create a contact form with a list field to let select the recipient of the message ?
For example :
- commercial (-> commercial@mail.ext)
- technical (-> technical@mail.ext)
Thanks for your help.
Last edited by charled; 10/28/2021 at 13:53.
If you're using 4.10 with terminal42/notification_center, and you really have only a couple of emails to choose from – then I would first just try using conditional simple tokens in the recipient field (in the back end).
Otherwise, a better idea might be to tap to prepareFormData hook, and dynamically change $form->recipient depending on the data submitted.
Under Contao 4.4, I found contao-formrecipient.
(This should be a core feature...)
Bookmarks