Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I use the LMSGetValue javascript method?

New Here ,
Jan 27, 2015 Jan 27, 2015

I am trying to call the javascript LMSGetValue method when the first slide of my course loads.

However, the following line is not working:

studentName = LMSGetValue("cmi.core.student_name");

I have consulted tech support from the LMS, and they said it appears as if captivate doesn't define the LMSGetValue method in the js file included in the course.

Do I need to do something to include the scormdriver.js file in the course when it is published?

Any help would be much appreciated.

1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Jan 27, 2015 Jan 27, 2015

SCORM_CallLMSGetValue("cmi.core.student_name");

You can also call this function once you get the name if it's not in the correct sequence:

ReverseNameSequence(strName)

Translate
People's Champ ,
Jan 27, 2015 Jan 27, 2015

What version of CP are you using?

CP7 and 8 bothe have cpQuizInfoStudentName that gets populated in an LMS.

You could also use:

SCORM_CallLMSGetValue(strElement)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 27, 2015 Jan 27, 2015

I am using cp 8 to create a responsive project.

In your example above, would the strElement be cmi.core.student_name or are you referring to a cp variable?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jan 27, 2015 Jan 27, 2015

SCORM_CallLMSGetValue("cmi.core.student_name");

You can also call this function once you get the name if it's not in the correct sequence:

ReverseNameSequence(strName)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 27, 2015 Jan 27, 2015
LATEST

TLCMediaDesign, thank you.

The following command worked properly:

SCORM_CallLMSGetValue("cmi.core.student_name");


I appreciate your help.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources