Forum Discussion
Getting student name from the LMS and using it in Articulate
Matthew,
I am hoping you might be able to help me on this as I have a very similar issue to Candice above. I had this working for me for a year or so - retrieving both first and last names. However we upgraded our LMS and I am not sure if it is linked but I started to see "undefined" inserted before the full name. Going on your suggestion above, that the LMS might be storing the name in an unusual way, I updated the line in the code from:
var newName = array[1] + ' ' + array[0];
to
var newName = array[0];
and this worked, i.e. it retrieved the full name and the "undefined" was not included.
My question is, have you seen this more frequently now or do I need to investigate why the LMS is storing the name in this way? We use Moodle.
Regards,
David