H5P Content as a Prerequisite for a Test Element
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 ContentInsert 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
| ![]() |
| 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. | ![]() |
Add a course elementInsert a course element of the type ‘test’ and add a test resource. If you need help with this, refer to the page: Test. | ![]() |
How to set up the expert rule for the test elementOpen 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. |
|
Publish coursePublish the course for your changes to take effect. |



