I am working on a quiz in which my students select how many questions they want to answer. I have an Embedded Data variable with this number, let's call it X.
I then have a set of 300 questions that are displayed to them randomly. But I would like the survey to end after they have answered X questions.
I thought about two ways on how to do it:
- In Survey Flow, when I randomize the 300 blocks, telling the randomizer to randomly present ${e://Field/X} elements. This doesn't work, it asks me for a number.
- In the Javascript of each question, introduce a counter. Tell the Javascript to send the student to the end of the survey if that counter is equal to X. I have figured how to introduce the counter, but I unfortunately lack the knowledge to introduce a function that will send students to the end of the survey.
Any help on how to do it (in either of these ways, or any other) is greatly appreciated. Thanks in advance!