JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How to conditionally change email recipient?Asked by activesmallbiz 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?
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:
Also, I created conditions that will place yes or no in text-box based on selection of answers:
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:
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.
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?
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.
You can copy this form for reference of the fix for the condition I've made: https://form.jotform.com/62463424256960
That fixed it! Thanks guys, saved me a lot of time and headache with this!