Dropdown value to equal more than one email address for recipient

Send form submissions to multiple email addresses based on a dropdown selection.

Overview

The issue occurs because a dropdown field value cannot directly contain multiple email addresses separated by commas or semicolons for the email recipient.
Use a code value in the dropdown and a custom PHP action on submit to map the code to the appropriate email addresses, which also prevents email scraping and handles duplicate values.

Answered
ChronoForms v7
se sem 08 Sep, 2022
Hi - been asked if the content of a form can go to multiple addresses depending upon the selection of a drop down value. So, submitting a form for Site A would go to two email addresses.

In field dropdown i can easily put value: email@domain.com name: site A and then on the email action use {data:dropdown} as the recipient. That's perfect. But there seems no way to have two email addresses as a value - i've tried separating them with a comma or semicolon - each time the email fails to send.

Any suggestions?

sem
se sem 08 Sep, 2022
AH!

email1.@domain.com,email2@domain.com as value for the dropdown and {data.split:dropdown} as the recipient appears to work!

sem
Gr GreyHead 19 Sep, 2022
Answer
Hi sem,

What you suggest will work but there is a risk that emails shown in a form page will be scraped and spammed. You can use 'code' values in the dropdown and Custom PHP on Submit to convert these to the appropriate email addresses.

Bob
se sem 19 Sep, 2022
hey Bob. Thanks for the reply. Im thinking I will do something else because I suspect that in some cases the email values will be the same but the venues different so CF won’t like that and miss out the duplicate entries in the drop down. So your suggestion sounds the best way forward.

thanks.

sem
Post a Reply