• Here is my desired result. I have a contact page. I am using Contact Form 7. The subject field is a drop-down menu. We have 4 options.

    Selection_A means the email goes to email_1 and email_2
    Selection_B means the email goes to email_3 and email_4
    Selection_C means the email goes to email_5
    Selection_D means the email goes to email_5 and email_6 and email_7

    I have been trying to decode the steps to do this, and I think I have gone just about nuts.

    Can anyone help? Thank you in advance.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    this is not related to my plugin, really.

    Check this:

    https://contactform7.com/selectable-recipient-with-pipes/

    The only difference is that in some cases you would like to send emails to multiple recipients.

    So you need to adapt the example to something like this:

    [select your-recipient "Section_A|[email protected],[email protected]"
                        "Section_B|[email protected],[email protected]"
                        "Section_C|[email protected]"]

    Then in the email tab just set the To: field to [your-recipient]

    Thread Starter vader7071

    (@vader7071)

    Oh, I apologize. I wasn’t sure if this would be handled via your add-on or the original plugin. But thank you for helping!

    I will try your suggestion. THANKS!

    Thread Starter vader7071

    (@vader7071)

    Update, Your plugin actually plays a role to accomplish this.

    Doing some reading, what I have to do is use Contact Form 7 to create the form layout.

    Then I use Conditional Fields for Contact Form 7 to set groups based on which subject is selected.

    Once I have the group activated based on the subject, then inside the group, I set my [mail-to] tag to change the email address I am sending to.

    But here is where I am struggling some. I think I need to use the Hidden Field for Contact Form 7 plugin as well. But I am still working on the group staging to make sure I am correct.

    One step at the time.

    Plugin Author Jules Colle

    (@jules-colle)

    I think you are over-complicating things.

    And your last example will not work if you are using the [mail-to] field multiple times, as all field names should be unique. So if you really want to do it this way, you need to create 4 groups [group-1] to [group-4] and put [mail-to-1] to [text mail-to-4 class:hidden] in each of them. then hide them with some css .hidden{display:none}

    In the email field you can then write [group-1][mail-to-1][/group-1][group-2][mail-to-2][/group-2][group-3][mail-to-3][/group-3][group-4][mail-to-4][/group-4]

    But as I said, there is a much simpler way, without using CF7CF

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Choose recipient based on drop down’ is closed to new replies.