Show correct/incorrect question feedback

I have several knowledge checks. I would like to show the feedback for correct and incorrect in the same window. I've set the Correct choice and the Incorrect choice to show the same page and on the page I have an actions that checks to see if the question is correct :


On Show

Action Show

Target Feedback_cor

If Question_XXXX is Correct

Else Hide Feedback_cor


Both feedbacks are visible on the page with the Feedback_cor on the top layer.


This works within Preview and Run mode but not when published to HTML.


Any suggestions to get this working??????


sjones

Discussion (2)

@benpitman 56856 wrote:

Well, it looks like it should work. What I do is slightly different and always works regardless.


I put both feedback blocks (sometimes there is a different one for each answer) in a group and everything is initially hidden. Then I create an action group for Correct: Hide the feedback group (which hides everything) regardless just to be sure. Then I show the Correct FB.


Now for incorrect, if you are using a Submit button, you need two conditions and both must be true to run the incorrect action group which hides the feedback group and shows incorrect FB. The conditions are that the question variable is NOT empty AND it is incorrect.



Ben,


Thanks for the suggestion. I was able to come up with a solution. Showing the correct/incorrect feedbacks are shown by having the Feedback method in the question perform the appropriate actions.


sjones

Well, it looks like it should work. What I do is slightly different and always works regardless.


I put both feedback blocks (sometimes there is a different one for each answer) in a group and everything is initially hidden. Then I create an action group for Correct: Hide the feedback group (which hides everything) regardless just to be sure. Then I show the Correct FB.


Now for incorrect, if you are using a Submit button, you need two conditions and both must be true to run the incorrect action group which hides the feedback group and shows incorrect FB. The conditions are that the question variable is NOT empty AND it is incorrect.

Discussions have been disabled for this post