Results 1 to 3 of 3

Thread: (solved) Contact form with many recipients possible ?

  1. #1
    User
    Join Date
    04-01-10.
    Posts
    289

    Frage (solved) Contact form with many recipients possible ?

    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 14:53.

  2. #2
    User
    Join Date
    11-16-11.
    Location
    Hamburg
    Posts
    39

    Default

    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.

  3. #3
    User
    Join Date
    04-01-10.
    Posts
    289

    Default

    Under Contao 4.4, I found contao-formrecipient.
    (This should be a core feature...)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •