Forum Discussion
Getting name from opigno LMS
If the LMS is SCORM-conformant, then it will respond to a request for the data element cmi.core.student_name (the field name in the LMS' database is irrelevant) with the student's name, formatted as last name, first name and middle initial (note, middle initial may or may not be populated). Last name and first name are separated by a comma. Spaces in the name must be honored.
The basic Javascript you would use is:
var player = GetPlayer();
function findLMSAPI(win) { if (win.hasOwnProperty("GetStudentID")) return win; else if (win.parent == win) return null; else return findLMSAPI(win.parent);}var lmsAPI = findLMSAPI(this);
var lmsStudent_Name = lmsAPI.GetStudentName(); player.SetVar("lmsStudent_Name", lmsStudent_Name);
Create a new variable in Storyline called lmsStudent_Name and insert it as a Reference into a Text Box.
Related Content
- 10 months ago
- 11 months ago
- 11 months ago