Custom Feedback Text for Individual Questions
Last updated
Last updated
This is an example of how you can provide special feedback for each trivia question after the player answers. For example, you may want to provide more information on that question's topic whether they answered correctly or not.
1 - Add a "feedback" column to your question spreadsheet (our database) like shown below, and add custom feedback text for each question.
2 - Next, you want to use the trivia property trivia.currentQuestion.feedback
to place the text in the HTML element having id="feedback". Notice how this is done in lines 2 and 3 below. Make the same changes within your onClickedAnswer
function in your JavaScript.
That's it. Try it out.