HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... Speeding up a test
Speeding up a test
  View type:
Hi all.

Does anyone know how to skip the 'Next Question' button in a test?
At the 'onAttempt' event for the test I want to tell it to move to the next one without waiting for the 'Next Question' button to be pressed.
Which method call is behind that button?

I sort of want to do:
$Test1.displayQuestion($Test1.questionNumber + 1)

but have no idea how to... [:(]

Many thanks,Paul.
 
Hi, Paul,

well, it can be done, but be aware that it's at your own risk [:)]

1. Do not use onAttempt event for that - it will make object work incorrect! OnAttempt fires BEFORE any current answer evaluation and if you change object state on this step it can produce errors.

2. Use OnQuestionEnd event (it fires when all evaluations on current question are done and nothing left to do with this question). Use JAVASCRIPT action with call, similar to call of Next Question button (i.e. you will emulate the click on the button):

CallMethod('q_099_test', 'Dispatcher', { pid: 'here goes real test object ID', action: 'clicknext'});

3. You will also need to check if the question is last and DO NOT launch on the end of last question (normally the object scripts do that, but if you override them, then you should take care of that). Something like (suggest you have 15 questions in test):

IF ($OBJ_ID.questionNumber!=15)
_ JAVASCRIPT (...from p.2...)


Anyway, it's a kinda hack. Be careful and check it twice.
 
The only thing I can think of (and works) is to make a serie of questions, each on a separate slide, and use 'goto nextslide'.
Maybe separate frames work, too, I haven't tried.
[:)]
Subject:
Message options
No additional options