Sunday, July 26, 2026

h5p page in Moodle does not show next activity on completion

There was this issue faced by the admins of one of our Moodle instances - "Quite a few sections use the H5P Interactive Book format and contain a video to be viewed and a few quizzes to be answered. The completion condition that has been set is to view the activities and get a grade in the quiz. Even though the conditions are met, the option to move to the next activity is not available. However, if the learner refreshes the screen, then the next activity is available. But it also clears the submitted responses in the current activity."

Gemini gave a long reply, based on which the final solution, obtained by testing on a development instance, was:

  1. Enable "Save Content State" in Site Administration > Plugins > Activity Modules > H5P
  2. Add a "Refresh" prompt for students Because Moodle cannot currently auto-refresh the page when an H5P grade is achieved
Instead of just putting in a button or javascript to refresh the page manually, we can achieve a similar result using Moodle's standard activity tools.

  1. Turn on Edit mode.
  2. Click Add an activity or resource below the H5P activity.
  3. Select URL.
  4. In the Name field, type: Save changes (or Save changes and continue).
  5. In the External URL field, paste the URL of the course page.
  6. Under Appearance, set "Display" to Open (or "Automatic").
  7. Click Save and return to course.
This will place a link on the course page that looks like a standard Moodle activity. When students click it, it essentially re-opens the course page they are already on, refreshing the backend completion triggers and unlocking the next module.

No comments:

Post a Comment