Skip to content

How to get number of evaluations per question from quiz step data?

Thank you for the useful plugin.

I am creating quiz report plugin to show more quiz details, such as time taken per question which I can get from the step data.

For a quiz consisting of VPL questions, what would be very valuable is a report showing not only the final answer and test output, but all the times the student pressed the 'check' button. It seems to be stored in the JSON step _evaldata in the initial step initial step to make things easier to render later on:

https://gricad-gitlab.univ-grenoble-alpes.fr/moodle-plugins/moodle-qtype_vplquestion/-/blob/master/question.php#L116

All the other attempted steps show nevaluations = 1

  • Is the 'check' during a quiz recorded as an evaluation?
  • Is there any way to get nevaluations per question, after a quiz is complete?