1. Home
  2. Docs
  3. FAQ
  4. Can I send the form to different email addresses based on the selection?

Can I send the form to different email addresses based on the selection?

There are 2 ways to do this.

1. Without conditional logic.

Let’s say you have a drop down list like this:

You can then assign the corresponding e-mail address as a hidden value to each of the corresponding options.

In Contact Form 7, a pipe (‘|’) can be used to assign a hidden value to an option in a drop-down list. For example:

If you insert a pipe (‘|’) character in the middle of the option value, only the part before the pipe will be open to the outside, and the part after the pipe will be used for mail replacement.

As a last step, simply add this in the TO-field:

Source: Selectable Recipient with Pipes

2. With conditional logic.

Let’s say your drop-down (or any other field) reveals a group, based on the selection.

Conditions:

In the To-Field, you can add:

Tags
Was this article helpful to you? Yes 1 No