Displaying a Hidden Value that Resides on the LMS via API

May 09, 2018

We are using some hidden API fields within our LMS to store "data" that we would like to display to the student upon completion of the course. Has anyone ever called (GET) a hidden field (via the API) within their LMS via Storyline? If so, I'd like to see the syntax used.

3 Replies
Matthew Bibby

Hi Chad,

To get something from the lmsAPI you'd use JavaScript similar to:

var lmsAPI = parent;
var id = lmsAPI.GetStudentID();

Then you can pass the value of that to Storyline using something like:

var player = GetPlayer();
player.SetVar("StudentID",id);

Also, have a read of the Storyline/JavaScript best practices article if you haven't already.

Hope that helps.

This discussion is closed. You can start a new discussion or contact Articulate Support.