Picture of Ulrich Kerzel
Enable feedback in question components?
by Ulrich Kerzel - Wednesday, 1 July 2015, 8:31 AM
 

Dear all,

 

I'm currently trying to create a course (editing the json myself to be able to to upload it to git during development).

 

However, how does one activate the feedback for the individual modules in the assessment?

The components behave as they should but I don't get the expected blue band showing the feedback (correct, partly correct, final and not final)

Do I have to enable this somehow?

 

I've pasted an example question below. 
I do however get the blue band overlayed at the end of the assessment and get my score reported there

 

Many thanks in advance

Ulrich

 

{
"_id":"L1_co03_a01_b01_c01",
"_parentId":"L1_co03_a01_b01",
"_type":"component",
"_component":"mcq",
"_classes":"",
"_layout":"left",
"_attempts":2,
"_questionWeight":1,
"_isRandom":true,
"_selectable":3,
"title":"MCQ component",
"displayTitle":"A Multiple choice test",
"body":"This is our first Multiple Choice test",
"instruction":"Select one or more options from the list below and select Submit.",
"_items": [
{
"text": "Choice 1 (true)",
"_shouldBeSelected":true
},
{
"text": "Choice 2 (true)",
"_shouldBeSelected":true
},
{
"text": "Choice 3 (false)",
"_shouldBeSelected":false
}
],
"_feedback":{
"correct": "All good",
"_incorrect": {
"notFinal": "Wrong but try again",
"final" : "Wrong and that's it"
},
"_partlyCorrect": {
"notFinal": "Not quite right, try again",
"final" : "Not quite right but that's it"
}
},
"_buttons": {
"submit": "",
"reset": "",
"showCorrectAnswer": "",
"hideCorrectAnswer": ""
},
"_pageLevelProgress": {
"_isEnabled": true
}
},

 

and the article where this is used:

 

{
"_id":"L1_co03_a01",
"_parentId":"L1_co03",
"_type":"article",
"_classes":"image-1",
"title":"1st article on assessment page",
"displayTitle":"1st article with assessment page",
"body":"Assessment page with step locking (trickle).",
"_trickle": {
"_isEnabled":true,
"button": "Continue to next question?"
},
"_assessment": {
"_isEnabled": true,
"_isPercentageBased" : true,
"_scoreToPass" : 75,
"_completionMessage" : {
"title" : "You have finished the assessment",
"message": "You scored [SCORE] out of [MAXSCORE]. [FEEDBACK]"
},
"_bands": [
{
"_score": 0,
"feedback": "You're score was below 25%. Why not have another try?"
},
{
"_score": 25,
"feedback": "You're score was below 50%. Why not have another try?"
},
{
"_score": 50,
"feedback": "Good effort, but you're score was under 75%. Let's try again?"
},
{
"_score": 75,
"feedback": "Great work. You passed the assessment article quiz."
}
]
}
},

 

 

Picture of Chuck Lorenz
Re: Enable feedback in question components?
by Chuck Lorenz - Wednesday, 1 July 2015, 1:37 PM
 

Hi Ulrich,

I believe what you are seeking is not a standard feature of the current adapt-contrib-assessment. While I have not used Assessment myself, I can confirm that what you're seeking is an explicit feature of the next version of Assessment that will be released later in July with v2.0 of the framework. Perhaps someone with more experience of the current version has a work-around or a hack they can share? 

You can get a preview of what's coming later in July by examining the develop branch of Assessment, or this draft of the new README, or playing with the test-package online or by downloading it and installing it. (Expect that most of these links will fail in a month.)

Chuck

Picture of Stephen Bates
Re: Enable feedback in question components?
by Stephen Bates - Wednesday, 1 July 2015, 4:34 PM
 

This is actually possible in adapt-contrib-assessment-quizArticle.js. We've modified the setUpQuiz function as follows:

 

setUpQuiz: function() {
            this.model.get('_assessment').score = 0;
            _showQuestionFeedback = this.model.get('_assessment')._showQuestionFeedback
            $('.' + this.model.get('_id')).addClass('assessment');
            _.each(this.getQuestionComponents(), function(component) {
                component.set({'_isEnabledOnRevisit': false, '_canShowFeedback': _showQuestionFeedback}, {pluginName: "_assessment"});
            });
        },

 

This depends on "_showQuestionFeedback":true, being added to the assessment article that is added to articles.json (below scoreToPass)

Picture of Ulrich Kerzel
Re: Enable feedback in question components?
by Ulrich Kerzel - Monday, 6 July 2015, 10:49 AM
 

Hi, 

 

ok, thanks - just to clarify, I'd have to change the .js code of the respective component and then add the line "_showQuestionFeedback":true to the assessment article ?

 

The reason why I'm so confused is that the functionality does work if I create a course via the authoring tool but I can't quite figure out what's different when I create one myself...

 

All the best

Ulrich