Student';s First Name as variable

Hello!

I'm seeking assistance with including only the student's first name as a variable. Lectora is set up to display the student's name as Doe, Jane when using the already created student name variable. I'm wanting to have text appear within the Lectora project that says "Dear Jane," instead. Has anyone found a way to do this?

Discussion (5)

Thank you! We do host on CourseMill, and I can use that variable in the CourseMill notifications, but it can't be used in Lectora. :(

Check this topic:

http://community.trivantis.com/forums/topic/pulling-just-the-first-name-in-lectora-scorm-courses/

undefined

That all depends on how you are retrieving the name of the student.

If your LMS separates the names like CourseMill, it is a no-brainer. ACTION: ON SHOW CHANGE CONTENTS TEXT BOX 2 VARIABLE = undefined

If it is hosted with a different LMS you may have to research how they handle it.

If these are not options I would look for a script person in the community to help to get rid of the "Doe,".

It might be a bit overcomplicated... mostly due to i already have this setup for more then just getting the first name... but well it works..and maybe its of use for you..

Action in Lectora: Run Javascript -undefined

firstNameUser = tempArray[1].toLowerCase(); //getting the first name of the user

}

undefined

Thank you!

Discussions have been disabled for this post