Submitting results to Moodle

May 02, 2017

Hi All,

I've developed a module which tests learners on complex mathematic equations. As you know, the quizzing templates in Articulate cannot serve this purpose, even the "Numeric" quiz template. Therefore I had to use a normal (Basic) slide to develop the questions and write Javascript code to handle the calculations. 

In the background, I initialized a variable "intVal". This variable increments by one, for every question that the user answered correctly. At the end of the quiz, I display the value of "intVal" (converted into a percentage out of 100) to the user. 

For example: if the user got 5 correct answers out of 10, the result is 50%. I ideally want to report 50% to Moodle. How can this be done in Articulate?

Please note that the questions are built using basic slides. There aren't any quizzing templates which was used, therefore, I cannot use the "Results" template either.

3 Replies
Dave Cox

Hi Shawn,

To pass your score to your LMS, you must use Storyline's questions coupled with a results slide. It is still possible to make this work with your in-house questions. For each of your custom questions slides, you will also need a True/False slide, and a results slide to report the results to the LMS.

The True/False slides are for the storyline logic only, and you won't display them to your users. For each question that your user solves correctly, use a trigger to set the answer to True. If the answer is incorrect, use another trigger to set the value to false. Next set a trigger to submit the question results. Set all of these triggers to run when the timeline starts, and make sure your submit trigger is the last trigger in the stack. Move the beginning of all objects on the slide to about 1/2 second on the timeline to prevent them from showing when the timeline starts. 

You also need to set the response layers to pass through. Go to each layer for Correct and Incorrect and add a trigger to jump to the next slide when the timeline starts. To prevent the correct and incorrect dialogues from displaying, you will need to modify the master slides for the correct and incorrect answers. Open the master slides, and move the dialogues off to the side of the stage. This will prevent these boxes from displaying.

I've attached an example with all of the logic set up for you.

Shawn Lalla

Hi Matthew and Dave,

Thank you very much for the assistance. I combined both your ideas and managed to solve the problem as follows: (For purposes of other developers wanting further details) :)

1. Insert a new True/False quiz slide. Set the correct answer (Either True/False). Set the Feedback option to none. This will prevent the Correct/Incorrect dialogue boxes from being displayed. Remove the submit button from the slide, this will automatically remove the "Submit Interaction" trigger from the slide as well. (Now the slide is setup correctly). (Thank you Dave for this idea).

2. Add your custom question to the slide (i.e. Overlay your question over the True/False options visible on the slide). This will prevent the True/False options from being visible to the user.

3. Now for the logic. Check if user answered the question correctly. Let's assume that we want to test if the correct value of the variable intCheck = '10', then we create the triggers as follows:

(RadioButton1 = "True" and RadioButton2 = "False")

Change state of RadioButton1 = "Selected" on Condition that Variable intCheck = '10'

Change state of RadioButton2 = "Selected" on Condition that Variable intCheck != '10'

Submit interaction "True/False"

These triggers basically score the user on the question. 

4. Add a results slide at the end and link all the questions to the results slide to display the final score to the user. The results slide will submit the results to the LMS.

A big thank you to you both! I just wanted to simplify things for other developers faced with this problem. Hopefully all three responses will assist :)

 

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