H5P Content as a Prerequisite for a Test Element

Last modified by Anna Paul-Hasenfuss on 28.07.2026

This page illustrates a simple use case in which a course progress indicator is combined with access restrictions for a course element.

In the example, the ‘Completed’ status for an H5P Content element (see Figure 2) is the prerequisite for automatically unlocking a test element (see Figure 3).

In addition to the manual progress tracking, there are also course elements for which automatic progress assessment is available. An overview can be found on the Course progress page.

Step-by-step guide

How to embed H5P Content

Insert a course element of the type ‘H5P content’ and upload an H5P file. If you need help with this, refer to the following pages: Learning content (Course element: H5P Content) and Adding H5P Content to a Course

 

Kurseditor - H5P-Inhalt mit Ressource.png
You will need the course element ID for the expert rule later on. You can find it in the ‘Title and Description’ tab at the bottom right - simply note it down.Kurseditor - ID eines Kursbausteins_de.png

Add a course element

Insert a course element of the type ‘test’ and add a test resource. If you need help with this, refer to the page: Test

Kurseditor - Kursbaustein Test mit Ressource.png

How to set up the expert rule for the test element

Open the Access tab of the Test element.

Create an Expert rule.

Use the following template to assess the progress and enter the course element ID for the H5P content:

 getProgress("[ID des Kursbausteins H5P")>=100 

Learn more at: Evaluation on the assessment data of other course elements.

Kurseditor - Kursbaustein Test mit Expertenregel_de.png

 

Publish course

Publish the course for your changes to take effect.