Create xAPI statement for quiz answers in Storyline 360
May 14, 2019
Hi! I'm working on a medical terminology course in storyline and have managed to make a basic xAPI statement work (sent to Watershed LRS). However, for research purposes, we need to track responses to each question in a pre-quiz and post-quiz - a little bit more complex statement for a newbie to xAPI (like me).
This is the "execute javascript" that fires in A360:
send_qstatement("answered","http://adlnet.gov/expapi/verbs/answered","Pre-test question 1","http://health.okstate.edu/oed/MedTermCourse/pre-test/q1","Abdominal-pain","Urinary tract infection","Urinary-tract-infection","Dysuria","Dysuria","Abdominal pain","Abdominal-pain","Headache","Headache");
I'm also retrieving 4 variables from the player: uName (text), uEmail (text), selectedAnswer (text), correctAnswer (T/F).
I've attached my js file. If anyone can help... thank you! I'm not sure why the statement doesn't go to the LRS.
2 Replies
Hi Austin,
Why are you trying to write your own statements? If you are using xAPI, Articulate already sends them when you answer a question.
Pankaj
(from GrassBlade)
They would be sent if you can export to TinCan. The LMS we use does not allow us to play in TinCan and HTML (I don't know why but it always fails).
So we have write custom scripts. If anyone can provide feedback on this I am looking for similar information.
This discussion is closed. You can start a new discussion or contact Articulate Support.