Forum Discussion
JuliaBeck
4 years agoCommunity Member
Getting name from opigno LMS
I have read so many threads about getting names from LMS and using them as a reference in storyline but none are working for me. They are all several years old, too. I am a javascript novice so I a...
JuliaBeck
4 years agoCommunity Member
I actually just realized it is grabbing the username instead of the first name. Do you know what I need to change to get the first name?
- JoeFrancis4 years agoCommunity Member
Now that you have the raw student's name, you can convert lmsStudent_Name into an array, using the comma + space as the separator (if there isn't a space between the last name and first name, then remove the space from the split parameter below).
In Javascript, add this below what you already have:
var nameArray = lmsStudent_Name.split(", ")player.SetVar("strFirstName",nameArray[1]);player.SetVar("strLastName",nameArray[0]);In Storyline, create two new variables, strFirstName and strLastName.
Related Content
- 10 months ago
- 11 months ago
- 11 months ago