Different form recipients based on user input?

Permalink
I'm trying to figure out how to route a single form to different email addresses, based on how the user answers a specific question. Is there a way to do this? (using v8)

Specific Details:
We're wanting to build a dropdown for different departments that the user can submit a question to. Based on their selection, a different person would receive the email notification for that form submission.

Thanks in advance.

InformaticsInc
 
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi InformaticsInc,

I imagine you can modify/extend the Legacy Form/Form blocks to do this.

A less complex alternative would be making the form using a single page or External Form block. You could get the select drop-down value from the POST array. Once you have the value, you can then use a switch to decide which email address to send it to.
InformaticsInc replied on at Permalink Reply
InformaticsInc
That makes sense. Will present that option to my client.

Thanks for the reply.
Chrouglas replied on at Permalink Reply
Hey there. Did you ever come to a solution for this?

I have something similar I'd like to do. I want to have a 'leadership bio' block (using express entities) that lists name, title, and such but also has a button that opens a form that will send notification to the email address in the entity entry. This will effectively hide the email from bots, right?

I imagine I can hard code the form directly into a custom express listing template but it might be nice for my client to be able to edit the selected form as needed without coming back to me.
InformaticsInc replied on at Permalink Reply
InformaticsInc
Hi there,

We ended up going with a simple solution of checkboxes for the intended department, and routed it to a single email address, thus taking the sorting/redirecting off the site. (The client manages this process).

Good luck with your attempts!

-Informatics Inc.