-
GhostScribesAsked on June 2, 2016 at 7:22 PM
I've spent days trying to create a simple quiz that gives a response based on whether they answer correctly or incorrectly. I don't want them to be able to go to question 2 until they get #1 right. I got my first question working the way I want it. Then I copied that section and updated it, only to find that anything I changed for question 2 also changed question 1. Does that mean that I can only have one set of conditions for the whole page?
-
David JotForm Support ManagerReplied on June 2, 2016 at 10:56 PM
Our conditions are not meant to create quiz forms, we have already a feature for that: https://www.jotform.com/help/289-Turn-your-form-into-a-Quiz-or-Exam-
If you want to accomplish what you need, we have to apply some workaround to make it happen:
1) You need to add a extra text box field bellow each question:
2) Setup a condition to required that text box field if the answer is not equal to the right one: https://www.jotform.com/help/367-How-to-Make-a-Field-Required-Based-on-Another-Field-Selection-or-Input
3) Hide the text box fields with custom CSS code:
a) For that you need to click on it's gear icon, go to Properties, and copy the ID:
b) Change the word "input" for "id":
#input_51>>#id_51
C) build the custom CSS code that will be injected: http://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes
#id_51{
display: none;
}
Note: if you add a new fields, simply separate with a comma the next ID, example:
#id_51, #id_52{
display: none;
}
Test my example form: https://form.jotform.co/61538560361859
You may clone it in your account to check further: http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL
Let us know if you need more help.