How to Send an Email Based on a User’s Answer

Last Update: 

This guide will show you how to send different email alerts using Conditional Logic to select an email template and change recipients based on the form filler’s answer.

For example, we’ll apply Conditional Logic to the “Would you like to join our mailing list?” question on this demo form and send an email alert based on the selected answer.

single choice field

Creating the Email Alert Templates

The first step is to create the email templates:

  1. In the Form Builder, click on Settings at the top.
  2. Choose Email on the left.
  3. Now, create the Email Notification or Autoresponder templates according to your requirements.
email settings
Email templates for “yes” and “no” answers.

Setting Up Conditional Logic

Once the email templates are ready, the next step is to set up Conditional Logic:

  1. In the Form Builder, click on Settings at the top.
  2. Choose Conditions on the left.
  3. Add a new condition and select the Change E-mail Recipient option.
change email recipient condition

The Change E-mail Recipient condition, as the name suggests, changes or overrides the selected email template’s recipients. When triggered, it sends the selected email alert to the defined recipients.

  1. Now, set up the condition and action in the next window. In the example form, the conditional logic for “Yes” is as follows:
create condition
form-builder-change-email-multiple-recipients-min-png

To break that down:

  • The condition or IF statement is set to check if the “Would you like to join our mailing list?” question is equal to “Yes.”
  • The actions or DO statements are set to send the selected email alerts to the defined recipients if the condition is met.
    Notes:
    • You can enter the email address or the Email element’s tag or unique name as the recipient.
    • Paid accounts can input comma-separated email addresses and/or email tags for multiple recipients.
  1. Once you’re done, click Save at the bottom to save the changes.
  2. Finally, set up the rest of your conditions for the other email templates.
    Note: Free accounts can create up to three Change E-mail Recipient conditions on a form — unlimited for paid plans.

Email alerts with Conditional Logic will show the Includes Condition icon.

conditional notifications and autoresponders
Was this guide helpful?
Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments:

  • Bryan - Profile picture
  • Alexander Landman - Profile picture
  • Selwyn Isakow - Profile picture
  • Gerson Castellanos - Profile picture
  • JFSannarbor - Profile picture
  • qcrushweb - Profile picture
  • Kelly Walsh - Profile picture
  • Ar - Profile picture
  • chem lip - Profile picture
  • PatSmith1 - Profile picture
  • Mark Kuss - Profile picture
  • ACSBritex - Profile picture
  • jrleichter - Profile picture
  • Presh086 - Profile picture
  • username2481 - Profile picture
  • Talya - Profile picture
  • saifsmiri1 - Profile picture
  • career.mich - Profile picture
  • Mcdaniel1801 - Profile picture
  • PatSmith1 - Profile picture
  • CMSKaren - Profile picture
  • SmileyStars - Profile picture
  • MarilynLitt - Profile picture
  • GerdauCHR - Profile picture
  • Tony Maskell - Profile picture
  • tweisheit - Profile picture
  • jamal_lucifer - Profile picture
  • examinerinfo - Profile picture
  • joewalnut - Profile picture
  • PagePath - Profile picture
  • joycearendt - Profile picture
  • tkeen - Profile picture
  • Craig_Watkins - Profile picture
  • Kim1Hill - Profile picture
  • denismoquin - Profile picture
  • JanaJot - Profile picture
  • luckylady - Profile picture
  • sstte18 - Profile picture
  • gnieri - Profile picture
  • Rachel Baillie - Profile picture
  • etcadmin - Profile picture
  • PearsonAustralia - Profile picture
  • Jodessur - Profile picture
  • Joe303 - Profile picture
  • Ian Lowe - Profile picture
  • Chrissybright - Profile picture
  • mncoaches - Profile picture
  • traveldeskindia - Profile picture
  • vicheca - Profile picture
  • Nezer - Profile picture
  • zaryab - Profile picture
  • karansharma - Profile picture
  • courtneychi - Profile picture
  • Maria - Profile picture
  • bobbylachapelle - Profile picture
  • rjcashmoney - Profile picture
  • PaulRoescher - Profile picture
  • michellevn12 - Profile picture
  • georgias714 - Profile picture
  • surajsksinha - Profile picture
  • denysaputra - Profile picture
  • WinshipPhillips - Profile picture
  • ttchecklists - Profile picture