Forum Discussion
Help Needed: Custom xAPI Statements for "Pick Many" Questions in Storyline 360
Hi everyone,
I need some assistance with recording learner selections on "Pick Many" type questions in Storyline 360 using custom xAPI statements.
Context:
Currently, I notice that a default xAPI statement is sent to my LRS (Veracity) when a "Pick Many" question is part of a quiz that includes a result slide. I’ve attached an example statement for reference. However, this default statement is not sent for ungraded Knowledge Check questions. Instead of creating a result slide for every Knowledge Check in my course, I’d like to create custom xAPI statements for these questions.
What I Like About the Default Statement:
- It automatically includes learner selections in result.response.
- The quiz result statement provides a result.score section with built-in variables like Quiz.ScorePoints and Quiz.ScorePercent.
Challenges:
- I’m struggling to figure out how Storyline records the choices learners select for "Pick Many" questions and populates result.response. Does it require custom JavaScript? Do I need to modify multiple course files to make everything work?
- I can’t directly use the variables Quiz.ScorePoints and Quiz.ScorePercent in my custom xAPI statements. I tried setting a custom variable (Set variable A to Variable Quiz.ScorePoints) on the result slide’s timeline, but this approach didn’t work.
Goals:
- Write a custom xAPI statement for ungraded Knowledge Check questions that includes all the information I need (e.g., learner choices, scores, etc.).
- Understand how Storyline handles result.response for "Pick Many" questions to replicate this in my custom xAPI statements.
Any suggestions, resources, or examples to help me achieve this would be greatly appreciated! :)
Thank you!
- LaurenAckley-b6Community Member
"I can’t directly use the variables Quiz.ScorePoints and Quiz.ScorePercent in my custom xAPI statements. I tried setting a custom variable (Set variable A to Variable Quiz.ScorePoints) on the result slide’s timeline, but this approach didn’t work."
I was able to fix this by passing the Quiz.ScorePercent variable to a custom variable and then dividing it by 100.