Numbas
Numbas copied to clipboard
Force student to type something before ending the exam
We always have a handful of students who say that they ended an exam by mistake, because they didn't read the dialog messages.
We could force the students to engage their brains a bit by asking them to type something in a box before they're allowed to end. This could just be the word "end", or something unique to the exam so that they can't claim to have ended the wrong exam by mistake.
To make it so the student needs to type "end", the confirmation dialog to end the exam should have an input box in it.
- That will require setting up a new modal, in
themes/default/templates/modals.html
- Then make a variant of
showConfirm
that shows the new modal. Call it something likeconfirmEndExam
. - Finally, change the
showConfirm
call inNumbas.Exam.tryEnd
to call the new function.
Hi, it's my first time contributing to open source and I would like to work on this issue.
Hi, thanks for offering! First you should get the Numbas editor running on your computer, so you can test the code. Read our contribution guidelines at https://www.numbas.org.uk/contributing-to-numbas/#contributing-code.
I'll add a rough outline of what needs to be changed to the top of this issue.
is this still open? can i work on this?
Hello!
Is this issue still open? I am a first-time contributor, and I would like to help.
Thanks!
@infoalisaa Yes, it's still open. Open a pull request when you've got something for me to look at.
Hi, is this issue still open?
@abc22413 yes, it is.
Hi I am looking at fixing this issue, but when I do a test run of the new question, I get a 404 error saying the index.html file does not exist. I followed the installation guide, and I was able to get it running, but I get the following error when I do a test run of a new question
Resolved. I needed to change the settings.py file on my local machine. See issue #610 in the Editor repo
Hi, Is this issue still open ?. I am a first time contributer i would like to have go at this issue.