multiple question draws and one result page

Mar 27, 2015

Hello,

i have a question regarding the following

I have 3 question banks configured and also 3 question draws. one of these question draws will be triggered based on a variable.
I have these 3 question draws tied to one result page. Now what happens is when filled out all the questions of one question draw correctly i can get a maximum score of 33% this must be because the resultpage thinks that only one of 3 question draws are completed succesfully. ( i have selected to calculate based on 3 question draws in the resultpage settings)

what i want is that if i filled out one question draw completely succesful i get a score of 100 %

Is this possible some how ?

help is much apriciated. 

Kind regards,

Dennis

9 Replies
Dennis Camps

Hi,

first you need to create a variable that is going to be used to assign the Results.ScorePercent. This variable needs to be Number and initial value is 0.
So create that variable and on the master resultpage u create a trigger that assigns the results.scorepercent to that newly created variable. 

then u can execute this java script. note that "yourvariable"in the javascript needs to have the same name as your variable. the rest should be the same.

var player = GetPlayer(); 

//Define new variable for score
var ScoreNaarLMS = player.GetVar("Yourvariable");

//get LMS API
var lmsAPI = parent;
//set score; the first number is the score
lmsAPI.SetScore(ScoreNaarLMS, 100, 0);

Kind regards,

Dennis

 

This discussion is closed. You can start a new discussion or contact Articulate Support.