Forum Discussion
Capture text responses using built-in xapi functionality
Hi all,
Is there a way to capture text responses using the in-built xAPI triggers in SL360?
I know Devlin Peck has created awesome tutorials on achieving this using javascript but I wondered it there was a way using the available functionality in SL.
Thanks in advance
4 Replies
- MariaCSStaff
Hi, Niall.
Thank you for reaching out!
We have an article on using xAPI statements to send the value of a variable to the LMS. Take a look below:
I hope this helps!
- NiallBanaghanCommunity Member
Thanks for this, however, I'm testing in Scormcloud and cannot see it recording the entry. I have attached the simple test file below.
- MariaCSStaff
Hi, Niall.
Thank you for sharing the .story file!
I believe the issue is related to the id being blank on your statement, as I get an error when inspecting it (right-click>Inspect>Network>Fetch):
![DevTools - cloud.scorm.comcontentcoursesTG50YZACJ0CustomxAPI1ca510361-990f-4e23-a118-fc6bda01115f0index_lms.htmlactor={name[Maria Costa-Stienstra],account[{accountServiceHomePagecloud.scorm.com,accountNameTG50YZ 2022-05-13 at 12.04.38 PM](https://p-bofbbg.b4.n0.cdn.getcloudapp.com/items/DOu4bLP9/fc824ac8-0897-4860-9e11-de2fb0378cfc.jpg?source=viewer&v=cabc35bfb061c73a38bc7ffdbe7246f9)
![DevTools - cloud.scorm.comcontentcoursesTG50YZACJ0CustomxAPI1ca510361-990f-4e23-a118-fc6bda01115f0index_lms.htmlactor={name[Maria Costa-Stienstra],account[{accountServiceHomePagecloud.scorm.com,accountNameTG50YZ 2022-05-13 at 12.07.25 PM](https://p-bofbbg.b4.n0.cdn.getcloudapp.com/items/RBungbR8/a8757bd5-d390-481c-92d8-7493a736522f.jpg?v=aa9fdf6a158b1a512b6d85ad49263216)
I recreated the trigger using the default id:

After re-publishing and uploading it to SCORM Cloud, I was able to receive the correct statement:

Let me know if this helps!
- NiallBanaghanCommunity Member
Works a charm, thanks Maria!
Related Content
- 4 months ago
- 6 months ago