Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • denis ushakov 11 posts 144 karma points
    Mar 26, 2019 @ 15:32
    denis ushakov
    0

    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.

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Mar 26, 2019 @ 16:43
    Nicholas Westby
    100

    Yep, here's an article that explains how to do that: https://code101.net/code-101/dynamic-email-recipients-with-umbraco-formulate

  • denis ushakov 11 posts 144 karma points
    Mar 26, 2019 @ 18:06
    denis ushakov
    0

    Perfect! Thank you.

  • denis ushakov 11 posts 144 karma points
    Mar 29, 2019 @ 00:01
    denis ushakov
    0

    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.

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Mar 30, 2019 @ 16:26
    Nicholas Westby
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft