Forum Discussion
MichaelLaudone
10 years agoCommunity Member
I never saw a solution to the middle inital issue: Here's what I did:
<script type="text/javascript" language="JavaScript">
function getName(){
var sName = lmsAPI.LMSGetValue("cmi.core.student_name");
sName = sName.replace(',','');
var aSplit = sName.split(" ");
player.SetVar("v_LastName", aSplit[0]);
player.SetVar("v_FirstName", aSplit[1]);
player.SetVar("v_MiddleInitial", aSplit[2]);
}
</script>