How can I send different emails depending on which option I choose on my form?

  • powerhousebni
    Asked on February 1, 2018 at 1:34 PM

    I am trying to create a form that has 2 options, that I can pick from (email 1 or email 2), and depending on which one I pick results in which email gets sent to the persons email that is entered. So far I have had to create 2 different forms because I do not see how to do this.

    Thanks!

    Ron

  • Support_Management Jotform Support
    Replied on February 1, 2018 at 2:51 PM

    Hello Ron - This can be achieved using CONDITIONS. The idea is to setup 2 notifiers and conditionally send each of them based on the selection chosen from your form.

    This was discussed in great detail on the guide I'm linking below.

    Complete guide: How-to-Send-Email-Based-on-User-s-Answer

    Give it a spin and let us know if you'd need further help.

  • powerhousebni
    Replied on February 1, 2018 at 5:43 PM
    HI,
    I read that article before writing you. When I do that if I choose my first
    choice in my dropdown it sends both emails, if I choose the second choice
    it actually works and just sends my 2nd choice email.
    Are you able to look at my account and determine the issue? My conditions
    are set up correctly but I am at a loss.
    Thank you!
    Ron
    ...
  • Support_Management Jotform Support
    Replied on February 1, 2018 at 6:43 PM

    Is this the form you're currently working on?

    https://www.jotform.com/80315218262146

    You have 2 CONDITIONS to send emails on that form and both of them were set up to send an email to {memberEmail}.

    {memberEmail} is the Member Email SHORT TEXT ENTRY (Textbox) field on your form.

    With this kind of setup, regardless of which option was selected, the respective email template will be sent to the email address that was filled out by your customers on the Member Email field.

    🔘 IF 3rd Absent IS EQUAL TO 3rd Absent THEN SEND this email template "POWERHOUSE ATTENDANCE WARNING LETTER: THIRD ABSENCE" to {memberEmail}

    🔘 IF 2nd Absent IS EQUAL TO 2nd Absence THEN SEND this email template "POWERHOUSE ATTENDANCE WARNING LETTER: SECOND ABSENCE" to {memberEmail}

    My recommendations are:

    1. You should use the actual EMAIL field instead of the SHORT TEXT ENTRY field. The email field was specifically designed for this use case. Yes, the textbox field should work but it's ideal to use an email field.

    2. If your aim is to send those 2 different email templates to 2 different recipients within your company (your colleagues), you should hardcode the actual email addresses on your condition instead of using the {memberEmail} placeholder.

    3. Otherwise, if the goal is to send 2 different email templates to the respondent (your customers) based on what they selected on your form, then your current setup should suffice.

    If we checked the wrong form, please get back to us with the FORM URL and further explain what the end goal is so we can better assist you.