Last modified by Carina Enke on 15.01.2024

Hide last authors
Carina Enke 39.1 1 {{layout}}
2 {{layout-section ac:type="single"}}
3 {{layout-cell}}
4 {{panel borderWidth="2" borderStyle="solid" title="Question"}}
5 How to configure a test so that after completing it and when the test result is successful, the user will automatically jump to a specific course element, and the target course element will differ depending on the test result?
Carina Enke 38.4 6 {{/panel}}
Carina Enke 39.1 7 {{/layout-cell}}
8 {{/layout-section}}
Carina Enke 9.1 9
Carina Enke 39.1 10 {{layout-section ac:type="single"}}
11 {{layout-cell}}
12 {{panel borderColor="#5a759d" borderWidth="2" titleBGColor="#5a759d" borderStyle="solid" title="Solution"}}
13 Enable the option "Jump to another course node after finishing the test" and combine it with expert rules.
Carina Enke 38.3 14
Carina Enke 39.1 15 By using the function** Jump to another course node after finishing the test**, you can already determine which course element will be displayed to the user immediately after completing a test attempt, without the user having to actively click on an area in the navigation. However, this function does not distinguish how successfully the test has been performed in order to allow the possibility for a direct distinction between different course elements.
Carina Enke 38.4 16
Carina Enke 39.1 17 To implement the desired behaviour, deploy **expert rules** and a structure course element. In the example course [[Activation according to test result>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/24494014468/CourseNode/101828111910973?75||shape="rect"]], you can test the effect. See the expandable area below for a description of all necessary configuration steps.
Carina Enke 38.4 18
Carina Enke 39.1 19 Expert rules are very versatile. For more general information about the expert syntax, see the help page [[Publishing within courses (expert mode)>>LMS.Benutzerhandbuch OPAL.Lehren.Kurs.Freigabe von Kursen und Kursinhalten.Expertenmodus zur Freigabe innerhalb von Kursen.WebHome]].
Carina Enke 38.4 20
Carina Enke 39.1 21 {{expand title="Steps required to implement the example in your own course ..."}}
Carina Enke 38.4 22 (% class="wrapped" %)
23 |(% class="numberingColumn" %)(% class="numberingColumn" %)
24 (((
25 1
26 )))|(((
Carina Enke 39.1 27 Create or open a test course element. Write down the ID of the course element. You can find it in the bottom right corner of the **Title and Description**
Carina Enke 38.4 28 )))|(((
29 (% class="content-wrapper" %)
30 (((
31 [[image:attach:Kurseditor - ID zum Kursbaustein_de.png]]
32 )))
33 )))
34 |(% class="numberingColumn" %)(% class="numberingColumn" %)
35 (((
36 2
37 )))|(((
Carina Enke 39.1 38 Create a new structure course element and give it a suitable title. Switch to expert mode in the Visibility tab.
39 )))|(((
Carina Enke 38.4 40 (% class="content-wrapper" %)
41 (((
42 [[image:attach:Kurseditor - Wechsel Expertenmodus_de.png]]
43 )))
Carina Enke 39.1 44 )))
45 |(% class="numberingColumn" %)(% class="numberingColumn" %)
Carina Enke 38.4 46 (((
47 3
Carina Enke 39.1 48 )))|(((
Carina Enke 38.4 49 (% class="content-wrapper" %)
50 (((
Carina Enke 39.1 51 Enter the expert rule
Carina Enke 38.4 52
53 {{code}}
54 getAttempts("101828111911807") > 0
55 {{/code}}
56
Carina Enke 39.1 57 in the appropriate field. Adjust the **course element ID** in this rule by replacing the ID 101828111911807 used here as an example with the ID that matches your test.
Carina Enke 38.4 58
Carina Enke 39.1 59 The expert rule configured in this way will now determine the number of performed test attempts. In this example, it causes the structure course element to become visible to users only after the test has been performed for the first time.
Carina Enke 38.4 60 )))
Carina Enke 39.1 61 )))|(((
62 (% class="content-wrapper" %)
Carina Enke 38.4 63 (((
64 [[image:attach:Kurseditor - Expertenregel eintragen_de.png]]
65 )))
Carina Enke 39.1 66 )))
Carina Enke 38.4 67 |(% class="numberingColumn" %)(% class="numberingColumn" %)
68 (((
69 4
70 )))|(((
Carina Enke 39.1 71 In the structure course element, create the corresponding elements to which the user would be directed upon completion of the test. If several elements are desired per test result, you can again use structure course elements for a clear outline. In the example, three different learning paths should be provided:
Carina Enke 38.4 72
Carina Enke 39.1 73 * Section “Subject A” if the test was completed with less than 5 points and thus failed.
74 * Section “Subject B” if the test was completed with 5 points and thus passed.
75 * Section “Subject C” if the test was completed with 10 points and thus passed with a full score.
Carina Enke 38.4 76 )))|(((
77 (% class="content-wrapper" %)
78 (((
79 [[image:attach:Kurseditor - weitere Kurselemente_de.png]]
80 )))
81 )))
82 |(% class="numberingColumn" %)(% class="numberingColumn" %)
83 (((
84 5
85 )))|(((
86 (% class="content-wrapper" %)
87 (((
Carina Enke 39.1 88 For each element, set an appropriate visibility rule that will react to the possible test result.
Carina Enke 38.4 89
Carina Enke 39.1 90 In the example,
Carina Enke 38.4 91
92 {{code}}
93 getOnyxTestOutcomeZK("101828111911807","PASS") ="false"
94 {{/code}}
95
Carina Enke 39.1 96 is used to display a section with notes for test attempts the learner did not pass.
Carina Enke 38.4 97
Carina Enke 39.1 98 To differentiate “passed tests” from failed tests, the expert rule
Carina Enke 38.4 99
100 {{code}}
101 getOnyxTestOutcomeZK("101828111911807","PASS") ="true"
102 {{/code}}
103
Carina Enke 39.1 104 can be used.
Carina Enke 38.4 105
Carina Enke 39.1 106 However, in the example,
Carina Enke 38.4 107
108 {{code}}
109 getOnyxTestOutcome("101828111911807","SCORE") = 5
110 {{/code}}
111
Carina Enke 39.1 112 was used to check for the score achieved to pass this test. If a full score of 10 points is reached, another specific element will be displayed in the example.
Carina Enke 38.4 113 )))
114 )))|(((
115 (% class="content-wrapper" %)
116 (((
117 [[image:attach:Kurseditor - weitere Expertenregeln eintragen_de.png]]
118 )))
119 )))
120 |(% class="numberingColumn" colspan="1" %)(% class="numberingColumn" colspan="1" %)
121 (((
122 6
123 )))|(% colspan="1" %)(% colspan="1" %)
124 (((
Carina Enke 39.1 125 Lastly, enable the option **Jump to another course node after finishing the test** in the Test configuration tab of the test course element and select the structure course element which is followed by the configured subjects.
Carina Enke 38.4 126 )))|(% colspan="1" %)(% colspan="1" %)
127 (((
128 (% class="content-wrapper" %)
129 (((
130 [[image:attach:Kurseditor - Nach Testabschluss.png]]
131 )))
132 )))
133 |(% class="numberingColumn" colspan="1" %)(% class="numberingColumn" colspan="1" %)
134 (((
135 7
136 )))|(% colspan="1" %)(% colspan="1" %)
137 (((
Carina Enke 39.1 138 Publish your changes.
Carina Enke 38.4 139 )))|(% colspan="1" %)(% colspan="1" %)
140 (((
141
142 )))
143 {{/expand}}
144 {{/panel}}
Carina Enke 39.1 145 {{/layout-cell}}
146 {{/layout-section}}
147 {{/layout}}