Forum Discussion
SallyMilford
8 years agoCommunity Member
Pulling first name from LMS
Hi all - I'm wondering if anyone might be able to put together a step-by-step guide as to how to set up a variable / javascript function for this? (i.e. pulling a user's first name from the LMS).
...
JamesBonney-EDE
8 years agoCommunity Member
Hi All,
The original code posted by Matthew works in Flash/HTML5 fallback, but not with HTML5/Flash fallback:
var lmsAPI = parent;
var name = lmsAPI.GetStudentName();
var nameArray = name.split(", ");
var firstName = nameArray[1];
var player = GetPlayer();
player.SetVar('first_name',firstName);
Any idea on how to get this working with HTML5/flash fallback?
Thanks
james