Forum Discussion
BrendaParedes
2 months agoCommunity Member
Hi Sasikumar, I'm experiencing a similar issue. I used the code below & it works in Scormcloud and Litmos but not in saba.
let player = GetPlayer();
let myName = lmsAPI.GetStudentName();
let array = myName.split(',');
let newName = array[1] + ' ' + array[0];
player.SetVar("lmsName", newName);
Instead of returning the student's name it's printing random numbers and letters. Was that your case as well? I'm going to try using the code you provided above.