Condition - I'd like to have 5 of the questions dictate where the form redirects to.

• art_crate
Asked on April 15, 2018 at 04:31 PM

Hi Guys,

I have a 10 question form. I'd like to have 5 of the questions dictate where the form redirects to.

-  Question 1 has the most weight on the redirect.

-  Questions 2 - 5, if 3 or more of the same option are selected they outweigh question 1. *If less than 3 of the same are selected, Question 1 dictates the redirect.

For example:

Question One = B

Question Two = 1A

Question Three = 2A

Question Four = 3C

Question Five = 4A

The form would redirect to (A)

Please let me know the easiest way to accomplish this with conditions.

Thanks!

• EltonCris
Answered on April 15, 2018 at 07:28 PM

I've tried different conditions combination but this seems quite complicated than I thought. There would be a few hundreds of conditions if we are going to make all the conditions field by field. Unfortunately, I was not successful in finding a feasible workaround. Sorry about that.

• art_crate
Answered on April 15, 2018 at 11:33 PM

Thanks Elton,

My initial thought as well, this appears easier than it is.

My thinking is there has to be a way to do it in a easier manner than creating hundreds of condition variations. Possibly by using calculations.

Looking forward to anymore input the Jotform team has.

Best,

• BJoanna
Answered on April 16, 2018 at 06:35 AM

So if the question 1 is A and questions 2,3 and 4 are B, the user should be redirected to B.

What should happen if the result A is equal to B? Should the user be redirected to the page A if that option was selected on question 1?

If I understood all correctly, you can assign calculation values to all form fields. Then you can calculate the total result for each option.

Considering that the first has the most weight and to eliminate the equal option from the conditional logic, which will be used for redirection, you should assign 2.1 to all options for the question 1. Assign 1 to all other fields.

You will also have to add 4 additional fields to each of your questions. The new fields will be used to get the calculation value of the selected option and they will be used for the final total filed calculation.

How to Assign Calculation Value

How to Perform Form Calculation Using a Widget

How to Pass Field Value to Another Field?

How to Change "Thank You" Message Using Conditional Logic

Here is a demo form that I created: https://form.jotform.com/81052191101945

Feel free to test it and clone it

Hope this meet what you are looking for.

• art_crate
Answered on April 16, 2018 at 03:06 PM

Hi Joanna,

Looks like you nailed exactly what I wanted. Thank you so much.

To answer your question: What should happen if the result A is equal to B? Should the user be redirected to the page A if that option was selected on question 1?

You got it right, Question 1 is always the more dominant. So there is no way the subs (questions 2-5) can be equal. They will only over ride if 3 or more of the same option is selected.

Thank you again for your help and thoughtful linking to supporting documentation.

Best!

• EltonCris
Answered on April 16, 2018 at 04:14 PM

You're welcome. We are glad to hear that the provided solution by my colleague worked for you. Cheers!