Getting null value of student name from LMS Sep 15, 2016 By dnyaneshwar pawar Hi, I am getting null value when I am trying to fetch student name from lms in my certificate.html file using following code. Plz can anyone help me to solve this issue? var player = GetPlayer(); var myName = lmsAPI.GetStudentName(); var array = myName.split(','); var newName = array[1] + ' ' + array[0]; var setName = player.SetVar("learner", myName); Here, I am getting false in console.log var getName = player.GetVar("learner"); Here, getting null value when I try to fetch.
Leslie McKerchie Staff over 7 years ago09/15/16 at 4:01 pm (UTC) Hi dnyaneshwar! Have you checked out the similar conversation here?
Dave Cox over 7 years ago09/15/16 at 6:56 pm (UTC) If you are using SCORM 1.2 try: var myName = lmsAPI.SCORM_GetStudentName(); if you are using SCORM 2004 try: var myName = lmsAPI.SCORM2004_GetStudentName();
Dave Cox over 7 years ago09/15/16 at 7:01 pm (UTC) My Pleasure. It's nice to return the favor sometimes.
5 Replies
Hi dnyaneshwar!
Have you checked out the similar conversation here?
If you are using SCORM 1.2 try:
var myName = lmsAPI.SCORM_GetStudentName();
if you are using SCORM 2004 try:
var myName = lmsAPI.SCORM2004_GetStudentName();
Thanks again Dave :)
My Pleasure. It's nice to return the favor sometimes.
Noted and appreciated :)
This discussion is closed. You can start a new discussion or contact Articulate Support.