How to conditionally change email recipient?

  • activesmallbiz
    Asked on August 30, 2016 at 10:35 PM

    I have a form that has 5 questions. Each question has A, B, C, D.

    At the end, the applicant is given a yes or no answer.

    Yes sends out a yes email to the applicant. No sends out a no email to the applicant.

    If the answer to any question is A, the answer is no. If the answers are all B, C, or D, the answer is yes.

    The problem is, when the answer is no on any one question, the form sends out a no email and a yes email together.

    How can I make it send out only a no email if any question is answered with A instead of sending both emails?

    Thanks!

  • Nik_C
    Replied on August 31, 2016 at 4:33 AM

    I created a test form as you described, five questions with A,B,C,D answers. I created Yes Autoresponder and No Autoresponder that will go to submitter:

    How to conditionally change email recipient? Image 1 Screenshot 40

    Also, I created conditions that will place yes or no in text-box based on selection of answers:

    How to conditionally change email recipient? Image 2 Screenshot 51

    That textbox, by the way, can be hidden if you don't want to be seen by your submitters.

    Finally, I created one more condition to change the autoresponder that will be sent based on the value in textbox:

    How to conditionally change email recipient? Image 3 Screenshot 62

    I also created one regular Autoresponder that will be sent if no answer is selected in any question.

    And here is the form url: https://form.jotform.com/62431773005954

    Please check and clone it if you wish.

    Let me know if this could work for you.

    Thank you! 

  • activesmallbiz
    Replied on September 3, 2016 at 1:35 AM

    Thanks for the reply. The demo form is not working right tho. If I select B, B, B, B, A it still gives yes. It should give no if any A is selected. It only gives a no if I select A in Q1. I duplicated the demo in my form and it shows the same problem.

    Do you have a fix for this?

  • liyam
    Replied on September 3, 2016 at 8:44 AM

    Hello,

    For the condition that has a condition of  IF xx IS NOT EQUAL TO A, you need to set it to ALL conditions instead of using ANY.

    How to conditionally change email recipient? Image 1 Screenshot 20

    You can copy this form for reference of the fix for the condition I've made: https://form.jotform.com/62463424256960 

     

  • activesmallbiz
    Replied on September 3, 2016 at 4:11 PM

    That fixed it! Thanks guys, saved me a lot of time and headache with this!