Custom Slide Variables Work On Desktop But Not Mobile

Apr 10, 2017

Hey, so I have recently been looking at upgrading from Articulate Storyline 2 to 360/3. However, we have some custom code in our LMS.js file which allows us to pull custom slide variables from our slides and store them in the database something like this: 

case "BW_StoreQuestionResult":
var player = GetPlayer(),
id = arrArgs[1],
slideId = player.GetVar("slideId"),
criteriaId = player.GetVar("criteriaId");

var modifiedId = "";

var dollarSlideId = slideId.replace(/ /g, "$");

var dollarCriteriaId = criteriaId.replace(/ /g, "$");

modifiedId += dollarSlideId + "|";

modifiedId += dollarCriteriaId + "|";

modifiedId += id;

arrArgs[1] = modifiedId;

RecordInteraction(arrArgs);

break;

This works perfectly in Articulate 2, and on desktop for Articulate 360. We have an issue where this is not happening on the mobile player however, I am assuming that there is a separate script file for recording interactions on the mobile player.

Is there a way to get variables from the player for the mobile player in articulate 360? Until we can resolve this, we won't be able to upgrade to Articulate 360. I will attach our modified lms.js file.

Thanks

Will

2 Replies
Allison LaMotte

Hi Will,

It seems like the issue stems from the fact that the code you've created is for the Flash output, whereas the mobile output uses HTML5. 

I'm not sure whether or not it's possible to do something similar that works on the HTML5 output, that's outside of my skillset. Hopefully one of the community members will be able to jump here and help you out.

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