Automattic / sensei

Sensei LMS - Online Courses, Quizzes, & Learning
https://senseilms.com
GNU General Public License v2.0
545 stars 198 forks source link

Quiz can be completed without uploading a file #1718

Open aheckler opened 7 years ago

aheckler commented 7 years ago

To repro:

  1. Create a lesson with a quiz.
  2. Add a file upload question.
  3. View the quiz on the frontend.
  4. Click Complete Quiz.

What happens: The quiz completes without you having uploaded anything.

What I expected: Some sort of error or warning, and the quiz to not complete.

526861-zd-woothemes

pgk commented 7 years ago

Adding to future release, see https://github.com/Automattic/sensei/pull/1931#issuecomment-336896948

donnapep commented 6 years ago

From #1931:

Hi, is there any chance to see this feature sooner or later? In our process, it is extremely penalizing that our users can submit quiz by leaving some replies empty or by not replying to questions. It is even more problematic because there's no history of submitted quizzes. Meaning, if a user forgot one "answer" to a quiz, we do not validate the lesson, we ask them to then reset their quiz and we lose all the initial replies he already submitted. Of course in this case we request them to only reply to the "forgotten" question. The consequence is that when we do not approve a quiz, we then have to copy-paste all the answers of a user in a Word document ... not very efficient.

There could be an optional feature at least in the back-end that, when enabled, automatically repopulates the fields of the quiz with all previous given answers upon "reset the quiz" button hit. It will save our users and ourselves tons of time and lots of hassles.

mikeyarce commented 2 years ago

Tested this out and yes, it's still a problem.

github-actions[bot] commented 2 years ago

Support References

This comment is automatically generated. Please do not edit it.

anaemnesis commented 1 year ago

Hi all 👋🏻,

While the reported issue can be reproduced, the behaviour is true of all question types (file upload, multiple choice, single line, true/false, and so on). It is possible to submit a quiz without answering any of its questions (unless the quiz has a pass condition), which means that this is the expected behaviour at this time.

For this reason, I'm relabeling this from a bug report to an enhancement request, as any improvement here should also apply to the other quiz question types.

Note that 'required' functionality is currently available in Sensei's Question Block:

required-question