I have a form that gets sent to different groups of people based on a radio button selection e.g.
Radio button = 1, emails get sent to email2, email3
Radio button = 2, emails get sent to email1, email3
Radio button = 3, emails get sent to email2, email3
However, I don’t want the others in the group to know that the email has also been sent to others so I was going to use the BCC field for routing until I just found out you can’t?!
Thanks for this. So if I add the code from the configure routing section then this will add those email addresses to the BCC field? Sorry I’m a little confused with what I’m supposed to do.
Hello. There is no example on that page that can do exactly what you want. Basically, you will be writing your own code to say “If radio button 1 was selected, set bcc to email2 and email3” and similarly for the other two radio button options. This will require some PHP knowledge to come up with the correct code.
If you did not want to do this with PHP, you could also create duplicate notifications, so that two individual notifications are sent when radio button 1 is selected (to email2 in one notification and to email3 in the other notification) and similarly, two notifications for each of the other two radio button options. Because you are sending two individual notifications in each case, no one will see who else received the message.
If you have any other questions, please let us know.
Am I doing something wrong with this code? I tried again this morning but still not getting any emails through using that code. In the Form notifications I have the “Send to” section marked as “Configure Routing” and then just used the default Admin email address there. Also, tried having this set to “Send to” “Email” but still nothing.