edx/edx-platform — pull request #1836 by jaericson (2013-12-04 16:24:16+00:00)
Title: Jeff/feature targeted feedback

@nparlante

Creating pull request for the "targeted feedback" feature on multiple choice questions.

This allows the author to have include targeted feedback for when students select an incorrect choice. Currently, the system only allows feedback blurbs that correspond to the correct answer. Targeted feedback will show up without the student needing to click the "Show Answer" button. There is also an option to change the explanation for the correct choice from a solution to targeted feedback. This essentially means that a student will see this automatically without clicking any buttons, and will also not see a green checkmark next to the correct answer until pressing the "Show Answer" button.

To try out, you set up a multiple choice problem with attribute `targeted-feedback` set to any value, or to always show the correct solution without the student needing to press a button or see the correct choice, set the value to `alwaysShowCorrectChoiceExplanation`. Then, you can provide targeted feedback by including a `` element within a parent `` element. The `explantion-id` attribute must match between the `` and the ``.

Example XML:

```

What is the correct answer?

wrong-1
wrong-2
correct-1
wrong-3

Targeted Feedback

This is the 1st WRONG solution

Targeted Feedback

This is the 2nd WRONG solution

Targeted Feedback

This is the 3rd WRONG solution

Targeted Feedback

Feedback on your correct solution...

Explanation

This is the solution explanation

Not much to explain here, sorry!

```