Forum Discussion
SasikumarMuruga
2 months agoCommunity Member
I got the results using the below code
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 name=lmsAPI.SCORM_GetStudentName();
var nameArray=name.split(',');
var firstName=nameArray[1];
var lastName=nameArray[0];
player.SetVar('first_name',firstName);
Thank You So much!