Forum Discussion
RobinLeach
14 years agoCommunity Member
Importing and retaining variables
Is there a way to import variables from external files. I want to design a review game that instructors can input thier questions into a Storyline presentation from a text file. I want to setup a ...
BruceHolliday
11 years agoCommunity Member
Try this.
var player = GetPlayer();
var rawName = lmsAPI.GetStudentName();
var nameArray = rawName.split(",");
var firstName = nameArray[1].replace(/^[ ]+|[ ]+$/g,'');
player.SetVar("LearnerFN", firstName);
Related Content
- 12 months ago
- 12 months ago
- 12 months ago
- 12 months ago
- 12 months ago