Buy Now
Sign in

Send different email depending on drop-down selection

funkyrhino , November 02 2021, 21:30
F
funkyrhino 13
November 02 2021, 21:30 #397332
Hi there,
In Chronoforms 5 we want to build a form that sends an email depending on what the user selects on a drop-down.
So, if user selects drop-down A, the user is sent email A. If user selects B, they get sent email B.
I've looked on forum and can't find anything but I did find this;
https://www.chronoengine.com/faqs/52-cfv4/cfv4-emails/2603-how-can-i-send-an-email-to-different-addresses.html
On an older post, Greyhead mentioned that the code that was used in the above, an also be easily adapted to work with a different email. (https://www.chronoengine.com/forums/posts/t102685/how-to-set-different-actions-based-on-dropdown-choice)
How would I use similar code to set which email is sent, based on the user's selection on the drop-down field?
Thanks in advance for your help!

Cheers,

Matt
GreyHead 65
November 03 2021, 11:50 #397337
Hi Matt,
I'd suggest that you use an event switcher to react to the drop-down selection. You could include an email action in each event; or you could create and save some or all of the email body and include that in an email after the switcher.
Bob
If you'd like to buy me a coffee or two, thank you very much
F
funkyrhino 13
November 03 2021, 21:11 #397342
Hi Bob,
Thanks very much for getting back to me so quickly.
Is there a guide or some instructions on how to use the Event Switcher? Does CF5 have a user guide with relevant references to using the Event Switcher tool?
If you could please point me in the right direction, that would be great.
Many thanks,

Matt
GreyHead 65
November 05 2021, 10:18 #397348
Hi Matt,
Please see this FAQ
Bob
If you'd like to buy me a coffee or two, thank you very much
F
funkyrhino 13
November 05 2021, 11:46 #397351
Hi Bob,
Brilliant, thank you!
Matt