Change email recipients based on the dropdown selection (Plain Javascript Template)
Hello,
Is it possible to change email recipients based on dropdown selection?
For example, I have a Reason For Contact box with two options "Service", "General". So if a user chooses "Service" it will send an email to [email protected] and if the user chooses "General" it will send an email to [email protected].
Is it possible? If it is, can you guide me thru the process? It doesn't need to be tied to the backend of Umbraco. I'm thinking of maybe targeting the dropdown field by ID or something like that then adding the functionality to change headers and that is where i'm getting lost.
Another question that I feel like will fit into this category.
Is there a way to redirect user to a different page based on radio button selection? I am wondering if this is a built in functionality or will i have to do some JS magic?
For example:
User is presented with two options, yes and no. If they choose "yes" then presses Submit, form works as designed. If a user chooses "no" then presses Submit, form instead of working as designed, simply redirects user to a different page without executing form.
Change email recipients based on the dropdown selection (Plain Javascript Template)
Hello,
Is it possible to change email recipients based on dropdown selection?
For example, I have a Reason For Contact box with two options "Service", "General". So if a user chooses "Service" it will send an email to [email protected] and if the user chooses "General" it will send an email to [email protected].
Is it possible? If it is, can you guide me thru the process? It doesn't need to be tied to the backend of Umbraco. I'm thinking of maybe targeting the dropdown field by ID or something like that then adding the functionality to change headers and that is where i'm getting lost.
Thank you.
Yep, here's an article that explains how to do that: https://code101.net/code-101/dynamic-email-recipients-with-umbraco-formulate
Perfect! Thank you.
Another question that I feel like will fit into this category.
Is there a way to redirect user to a different page based on radio button selection? I am wondering if this is a built in functionality or will i have to do some JS magic?
For example: User is presented with two options, yes and no. If they choose "yes" then presses Submit, form works as designed. If a user chooses "no" then presses Submit, form instead of working as designed, simply redirects user to a different page without executing form.
FYI, I've posted this question over here in a new thread: https://our.umbraco.com/packages/backoffice-extensions/formulate/formulate-questions/96580-redirect-to-page-if-radio-button-selection-has-specific-value
Not sure when I'll get around to answering it, but just FYI so you can click "Follow" on that thread to be notified when there's an answer.
is working on a reply...