Picture of Fareed Hassan
MCQ feedback options
by Fareed Hassan - Wednesday, 12 November 2014, 8:54 PM
 

Hi There,

I'm new in Adapt and working with MCQ, we need something like this to get different feedback of each option.

i.e. if you have 3 choices to choose from, you pick option A, you get feedback pertaining only to option A, and the same for B and C.

Do we have any other best component to fit this situation. 

Thanks.

Picture of Matt Leathes
Re: MCQ feedback options
by Matt Leathes - Thursday, 13 November 2014, 12:17 AM
 

Hi Fareed - and welcome to the community.

You should be able to do this with the MCQ - I think it's just not documented.

Pretty sure you add a _feedback property to each of the _items (so you have _text, _selectable and _feedback) - or at least that's what this function suggests:

https://github.com/adaptlearning/adapt_framework/blob/master/src/core/js/views/questionView.js#L48

Picture of Matt Leathes
Re: MCQ feedback options
by Matt Leathes - Thursday, 13 November 2014, 10:09 AM
 

Yes, that's definitely right - I've tried this on the MCQ component that comes with the default Adapt install. Sample JSON below where options 1, 3 & 4 are all set to have option-specific feedback:

{
        "_id":"c-30",
        "_parentId":"b-15",
        "_type":"component",
        "_component":"mcq",
        "_classes":"",
        "_layout":"right",
        "_attempts":2,
        "_questionWeight":1,
        "_isRandom":true,
        "_selectable":1,
        "title": "Key benefits of a vertical scrolling approach",
        "displayTitle": "Key benefits of a vertical scrolling approach",
        "body": "Can you identify a few of the benefits that a vertical scrolling approach offers over the traditional back and next approach?",
        "instruction":"Select one or more options from the list below and select Submit.",
        "_items": [
            {
                "text": "Vertical scrolling as a means of navigation on the web is common place and therefore familiar to users",
                "_shouldBeSelected":true,
		"_feedback": "since this option is the correct one you could just use the correct feedback - there's no need to have option-specific feedback really"
            },
            {
                "text": "Placing scrolling at the heart of your approach means designs are more mobile friendly",
                "_shouldBeSelected":false
            },
            {
                "text": "It reduces the need for unnecessary navigation as pages can be as long as they need to be",
                "_shouldBeSelected":false,
		"_feedback": "option three feedback"
            },
            {
                "text": "It means that you no longer need to first gain your learners' attention",
                "_shouldBeSelected":false,
		"_feedback": "option four feedback"
            }
        ],
        "_feedback":{
            "correct": "That’s correct. To continue close this tutor pop-up.",
            "_incorrect": {
                "notFinal": "Sorry, that’s not right.  To continue close this tutor pop-up.",
                "final": "Final feedback! Sorry, that’s not right.  To continue close this tutor pop-up."
            },
            "_partlyCorrect": {
                "notFinal": "",
                "final": ""
            }
        },
        "_buttons": {
            "submit": "",
            "reset": "",
            "showCorrectAnswer": "",
            "hideCorrectAnswer": ""
        },
        "_pageLevelProgress": {
            "_isEnabled": true
        }
    }
Picture of Fareed Hassan
Re: MCQ feedback options
by Fareed Hassan - Thursday, 13 November 2014, 2:24 PM
 

Thanks Matt!

Works great.