Skip to main content
Participating Frequently
August 24, 2017
Question

How to get the current user id of moodle or lms in adobe captivate 10?

  • August 24, 2017
  • 1 reply
  • 4098 views

How to get the  current user id  of  moodle or lms in adobe captivate?  We have used the following function or api of scorm 1.2   but that not works..

myDate=window.cpAPIInterface.getVariableValue("cpQuizInfoStudentId");

var CaptivateObj =document.Captivate; 

var a=CaptivateObj.SCORM_CallLMSGetValue("cmi.core.student_id");

it gives us error on console that cpAPIInterface  and CaptivateObj is undefined.Please help us on that.

    This topic has been closed for replies.

    1 reply

    christophet11731756
    Inspiring
    August 24, 2017

    Hello Varun Chopra, 

    I use moodle too, and I try to show user ID in a test projet like you coud see in the follow screenshoot :

    1) I add a text caption with user variable : $$cpQuizInfoStudentName$$

    ppt1

     

    2) Then I export it in Scorm1.2 for moodle html5 in zip format and upload on my lms. 

    3) I test it and my ID is shown like you could see: 

    ppt2

     

    If you need more explanation, I m aware... 

    The best, 

    Chris