How the export works
- Toggle Export result to a Storyline variable on before exporting â when off, no Storyline code is included in the file.
- Set the variable name to match exactly what you've named it in Storyline (case-sensitive).
- True / False mode â sets the variable to
true if all answers are correct, false otherwise.
- Points mode â sets the variable to the total points scored (e.g. 3 correct à 10 pts = 30).
- The variable is written on Submit only when all questions are answered â partial submissions do not overwrite the variable.
- Uses
window.parent.GetPlayer().SetVar(). Outside Storyline it logs a console warning but won't break.
Setting up the variable in Storyline 360
1
Open your Storyline project and go to Home â Variables (or press Ctrl+Shift+V).
2
Click Create a new variable.
âĸ True/False mode: Type = True/False, default = False.
âĸ Points mode: Type = Number, default = 0.
3
Name it exactly as entered above â spelling and capitalisation must match.
4
Insert a Web Object on your slide: Insert â Web Object, pointing to the exported HTML file.
5
In Web Object properties, enable "Load web object automatically" and "Display in slide."
6
Add a trigger elsewhere on the slide that reads the variable â e.g. show a layer when quizResult == True.
â ī¸ GetPlayer() only works inside a Storyline published preview or web server â not when the HTML file is opened directly from your desktop.