Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Optional checkbox "This is all my own work" before submitting a quiz

From MoodleDocs

The requirement

On certain quizzes, we must display a statement like

The University has to ensure as far as possible that the work submitted by students is their own. This is explained in the Plagiarism Policy Document (link). Please be aware that the University may subject your work to a computerised check for plagiarism.
[] I have read and acknowledge the above statement.

The quiz cannot be submitted unless the checkbox has been ticked.


Design overview

This it to be implemented in Moodle 2.0.

The text of the message will be in a language string. Actually, two language strings. One for the paragraph of text, and one for the checkbox label.

Whether the statement appears and has to be agreed to will be a new setting on the quiz form.

The statement and checkbox will appear on the quiz summary page.

The HTML will contain enough styling hooks (ids and classnames) to let themers style the message as they want.

When JavaScript is enabled, the submit button will be disabled unless the checkbox is ticked.

If the quiz is submitted when the checkbox is not checked, the summary page will be re-displayed with a form validation error.

Like all quiz settings, the default option can be set of the quiz admin page.


UI mock-ups

http://tracker.moodle.org/secure/attachment/19864/Quiz+setting+form.png

http://tracker.moodle.org/secure/attachment/19861/Summary+page+UI.png


Questions

  1. Can anyone suggest a better label for the setting than "Agree plagiarism statement before submitting"?
  2. What should the wording of the message be in standard Moodle?

See also