> For the complete documentation index, see [llms.txt](https://docs.idew.org/code-trivia-app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.idew.org/code-trivia-app/more/code-mod-examples/display-custom-feedback-text.md).

# Custom Feedback Text for Individual Questions

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.**

![](https://content.gitbook.com/content/P0Zg7F0nZq6jhXiwHcAR/blobs/VwTTOprJhjvyFmRhSX7q/Screen%20Shot%202018-06-19%20at%2011.02.39%20AM.png)

&#x20;

**2 - Next, you want to use the trivia property  `trivia.currentQuestion.feedback` to place the text in the HTML element having&#x20;*****id*****="feedback".** Notice how this is done in lines 2 and 3 below. Make the same changes within your `onClickedAnswer` function in your JavaScript.

{% code title="JavaScript" %}

```javascript
function onClickedAnswer(isCorrect) {
  if (isCorrect) $("#feedback").html(trivia.currentQuestion.feedback).show();
  else $("#feedback").html(trivia.currentQuestion.feedback).show();
  $("#correctAnswer").addClass("highlight"); //highlight right answer
  setTimeout(trivia.gotoNextQuestion, 3000); //wait 3 secs...next question
}
```

{% endcode %}

That's it. Try it out.
