Forum Discussion
Retrieve LMS User Name as Variable
I know you can have a user fill in a text box with their name and then later use that variable for personalization. What we would like to do is programmatically retrieve the user name from the LMS. Is there a way to set a variable with data from the LMS when the course is loaded instead of having the user enter their name?
Thx
- SteveFlowersCommunity Member
JS *works* in Storyline. Because it's a great big topic and is an extension of Storyline (not a core function) Articulate support staff cannot *support* JS in Storyline. Falls outside the definition of support at the moment.
There is good news! The community is full of folks willing to help out and offer advice.- HelenaSmithCommunity Member
Well that is good to know. I hope for SL3 or 360 JS gets support because many people tend to have questions.
- BruceRobertsCommunity Member
After a bit of poking about in Articulate Online, and in this instance, as I want to capture user entered variables and not just show the name in the lesson, I have hit upon the "Guestbook" feature in AO. Any lesson can be preceded with a form/questionnaire prior to launching. As we plan to create learner logins in AO using a list of email addresses and system generated passwords, the Guestbook Automatically captures the email address as the unique identifier. It is possible to add multiple custom questions. Any field has options as to whether the question is mandatory or optional. This will give us all the variables we need and then we can subsequently deliver the training package.
Just a couple of points to note:
1. if you test the Guestbook as Admin and then log in as a second user to test, do this on a different PC else the Guestbook considers you have already completed it. (Clearing cookies does not resolve this).
2. If you delete the lesson and recreate the lesson with the same name, the Guestbook is not deleted and old data fields are included in any new report. - CuentaOnceCommunity Member
- AndrewRostCommunity Member
Winner, winner, chicken dinner...Thanks, Phil! Very much appreciated.
- AndrewRostCommunity Member
You're correct, Steve. Works great in Flash, but epic failure in HTML5. Bummer...HTML5 is a deal breaker for my organization. Thanks to both for your quick replies.
- JørgenNielsenCommunity Member
lmsAPI.GetStudentName() is working for me, but SCORM_GetStudentName() is not - why?
I'm looking for a way to read/write values to lesson_location in SCORM 1.2, but lmsAPI does not offer a method for that. SCORM_CallLMSGetValue and SCORM_CallLMSSetValue in SCORMFunctions.js would be perfect, but how do I call them from my javascript? Do I need a src-statement?
- BrettRockwoodCommunity Member
Slightly off topic but I was wondering if you could use something similar to pull down a student's business unit or cost center. This would be really great in that you could then have the course automatically present the material that is applicable to a particular team.
I pretty limited in my LMS/SCORM knowledge; are there standard names like that that can be pulled down?
- SteveFlowersCommunity Member
Hey, Brett -
Unless someone's storing a value in the data model to bend in that type of info, this usually isn't exposed.
http://scorm.com/wp-content/assets/scorm_ref_poster/RusticiSCORMPoster.pdf
I agree with you, though. There are many pieces of information that I think could be carried forward from the LMS to customize / adapt to the needs of the user. I think things like accessibility preferences would be VERY useful.
- BrettRockwoodCommunity Member
Thanks Steve. Yes, accessibility would be excellent. I'm going to do some research and find out just what is available in the LMS we're using. I could imagine having language based on location and many other customizations.
- AndrewRostCommunity Member
An option if you have the ability to customize your LMS. We had our vendor code a second API that is initialized with the SCORM API that allows us to call a custom data set for exactly what you are looking for.