Forum Discussion
Rise: Is there a way to remove Correct and Incorrect text/graphics in feedback boxes?
- 3 years ago
Hi everyone! Now you can make quizzes more challenging. Show learners feedback without revealing correct answers! Find out how in this article. Enjoy!
Andrew,
Thank you so much for this detailed explanation! Do you happen to have a resource for how to create custom classes? That would be super useful for us.
Hi Deidre,
There's no way to do this in the Rise web editor, so we do it via javascript. The only tricky part is working out how to uniquely target the element you want to add the class to. I use the built in developer tools in FireFox/Chrome, but it's a bit trial and error. Once you have a css path to your element then it's pretty straight forward to include some javascript as outlined in my original post like this:
let quiz_card = quiz_feedback
.closest('.quiz-card__main')
.querySelector('.quiz-card__interactive > div:first-child > div:first-child');
if (quiz_card) {
quiz_feedback.classList.add('my-custom-class');
}
- DeidreWitan-50c3 years agoCommunity Member
Ah this is perfect thank you Andrew!
FYI for others following along: using thedisplay: none;
declaration in the css file like Andrew described above works like a charm to get rid of the feedback icons and labels, but it doesn't actually remove or change any code. So that means screenreaders will still give you correct/incorrect feedback and tell you which answer was "correct." I think you can probably fix this with aria tags but I haven't investigated yet.Since we only needed this for a single question (in a lesson with other questions where we wanted correct/incorrect feedback) I decided to just do it as a storyline block and format it so it looked like part of the rise course. Attached here in case it helps someone else!