Trying to pass a variable to report.html
Sep 30, 2020
By
Nick ANS
Hi there!
I followed the discussions about customizing report.html and printing variables. Unfortunately I am not able to manage this.
I have texfields for the user to type in answers. The values are stored in variables. Now I try to send these variables to the report.html by:
var player=window.opener.GetPlayer();
var textExtry1 = player.GetVar("textExtry1");
But this doesn't work. I get Javascript-Errors:
Uncaught DOMException: Permission denied to access property "GetPlayer" on cross-origin object
or the message that "GetVar" was not defined and the report.html page is emtpy.
What is wrong... could anybody provide a suggestion?
Thank you so much!
3 Replies
Are you testing locally?
Would LOVE to see if ANYONE has a solution to Nick's issue. I am running into the exact same issue. It's frustrating.
Hi Kara,
I do not have an update on the issue Nick shared above since we do not support the modification of the published output.
It sounds like you'd like to report a variable. Storyline 360 doesn't report the value of variables to an LMS. However, you may be able to communicate variables to an LMS with this technique.
Hopefully, the community will chime in with their solutions as well.
This discussion is closed. You can start a new discussion or contact Articulate Support.