Get Score Variable for LMS to save in database

Hi,

i am unable to get score into my LMS. I am using this code.

// get the learners info
var sl = GetPlayer();
var learnersName = sl.GetVar("Learner_FN");
var learnersEmail = sl.GetVar("Learner_LN");

learner first name and learner last name is the variable from text field in course.

i am getting input fields data perfectly.

how to get score result i am using this way

var Score = sl.GetVar("Results.PassPercent");

alert(Score);

but return is none.

how to get result? can anyone guide on it.

 

Thanks

 

 

 

Be the first to reply