For a JavaScript solution to having a timed quiz, try this:
In the Module Manager, find out the ID number of the copy of the Create Single Record module you are using for your quiz.
Then, when editing the Mad Blanks category for the quiz you want to have a timed submit for, find the setting labeled
Instructions/Message to the user for this category; message appears at the TOP of the Create Single Record module; message can contain HTML (which is inside the
Instructions to the website user for this category section of the page) and include the following:
<script language="javascript">setTimeout("document.mbcsrX.submit()", 5000);</script>
Replace
X with the ID number of the Create Single Record module. So, if your module has ID 43, use this:
<script language="javascript">setTimeout("document.mbcsr43.submit()", 5000);</script>
The delay is given in milliseconds. So, 5000 milliseconds is 5 seconds.
If you want to include a count down until the form submits in 15 seconds, try this code:
<script language="javascript">setTimeout("document.mbcsr43.submit()", 15000);</script>
<p>Time left to submit: <span id="madblankstimer"></span></p>
<script language="javascript">
countdown = 15; // initial value in seconds
function dotimer() {
countdown--;
if (countdown > 0) {
setTimeout("dotimer()", 1000);
}
document.getElementById('madblankstimer').innerHTML = countdown;
}
dotimer();
</script>
If you have the Create Single Record module parameter labeled
Show the completed record after submission? set to one of the "show the input form again" options, you can set up a form that submits itself automatically over and over again.