Forum Discussion
Draw from Question bank Issue
changed the quiz name and checked triggers
Hi AudreyDublado-2,
Great call opening a support case! I see that you're working with my colleague Mcgem. You are in excellent hands!
We'll continue the conversation over in your case.
Have a wonderful weekend!
- LeslieWilbourne6 months agoCommunity Member
Hi, not sure if you can help. I'm at a loss here on what to do.
I have a quiz of 10 randomly selected questions from a bank of 20. My issue right now is that I can't get the quiz to complete. It gets to the last question and it just sits there. I don't want a results slide to show just complete the 10 questions and move back to the main menu.
- JHauglie6 months agoCommunity Member
I think the issue here is that you have 20 questions but are not using all of them; so you can't automatically put a "go to next slide" trigger after the last question (since you don't know which of the 20 questions would be the "last" question in a given instance).
You may try this: Create a new numeric variable with a value of 0 (for example, "test_advance"). Add that variable to each slide in the question bank, and in each use, increment the variable value by "1" ("Add 1 to 'test_advance' when user clicks Submit" or "when the timeline starts"). Then after the question bank, add a blank slide that uses that variable to determine whether to auto-advance to the next (content) slide.
So the setup would be:
On the blank slide, if "test_advance" > 10, then go to (next slide) (or whichever slide you determine). In the slide properties, set that slide to advance automatically, and disable the navigation; then make the timeline very short (like 0.5 sec).
That should force the course module to continue once you have drawn 10 questions.
Good luck-
- LeslieWilbourne6 months agoCommunity Member
I guess I figured that the question bank would know that the last question (number 10) would be the last one. If I have a bank with 20 questions but only 10 are used at a time and are randomly generated it should have an internal trigger to 'complete' the quiz. Maybe I'm giving storyline too much credit :)
Anyways, I will give your suggestion a try and see if I can get it to work. thanks so much. keep your fingers crossed. I'll let you know what happens.
- Nedim6 months agoCommunity Member
JHauglie explained it well. As an alternative, I’d probably place the Draw from Question Bank and the Result slide in a separate scene. This allows you to use scene-level built-in variables like Scene.SlideNumber and Scene.TotalSlides for slide numbering visualization, with the Result slide excluded from the numbering.
At this point, I’d create a number variable (e.g., numberOfQuestions) equal to the number of slides randomly drawn from the question bank. Each feedback layer (correct and incorrect) would include a trigger that jumps to the next slide when the user clicks Continue, but only if the numberOfQuestions variable is greater than Scene.SlideNumber. Otherwise, it should jump to the Intro slide (or main menu).
I’ve attached a simple .storyline file demonstrating this alternative option, with a question bank containing 10 questions and 5 randomly selected from it.
Related Content
- 2 months ago
- 2 months ago