# True/False Question (H5P.TrueFalse)

One statement the learner marks true or false.

- `correct` is the text `"true"` or `"false"`, not a boolean.
- Write the statement as a claim, not a question, so either answer is a judgement of it.
- `behaviour.feedbackOnCorrect` and `behaviour.feedbackOnWrong` replace the default messages; say why.

## Example

```json
{
  "type": "H5P.TrueFalse",
  "params": {
    "question": "The Danube flows through four capital cities.",
    "correct": "true",
    "behaviour": {
      "feedbackOnCorrect": "Yes: Vienna, Bratislava, Budapest and Belgrade.",
      "feedbackOnWrong": "It does: Vienna, Bratislava, Budapest and Belgrade."
    }
  }
}
```

<!-- Generated by `h5p-author schema --markdown` from the pinned pack. Do not edit by hand. -->

## Fields of H5P.TrueFalse 1.8

The example is `type` and `params` alone, and `params` holds the fields below. A source also names its own `title`, `language`, `license` and `authors`, all four required: the build refuses a source that leaves out any of them. The author's name and the licence are the user's: ask for what they have not given. For a name they skip, write the one you know them by, or "Unknown"; for a licence they skip, `U`.

- `media` group — Media
  - `type` sub-content: H5P.Image | H5P.Video | H5P.Audio — Type: Optional media to display above the question.
  - `disableImageZooming` boolean = false; only when type is "H5P.Image 1.1" — Disable image zooming
- `question` html: strong em sub sup h2 h3 pre code, required — Question
- `correct` one of "true" | "false" = "true" — Correct answer
- `behaviour` group — Behavioural settings
  - `enableRetry` boolean = true — Enable "Retry" button
  - `enableSolutionsButton` boolean = true — Enable "Show Solution" button
  - `confirmCheckDialog` boolean = false — Show confirmation dialog on "Check"
  - `confirmRetryDialog` boolean = false — Show confirmation dialog on "Retry"
  - `autoCheck` boolean = false — Automatically check answer
  - `feedbackOnCorrect` text — Feedback on correct answer: This will override the default feedback text. Variables available: @score and @total
  - `feedbackOnWrong` text — Feedback on wrong answer: This will override the default feedback text. Variables available: @score and @total

21 interface texts are left out: they come from the libraries' translations. `h5p-author schema H5P.TrueFalse --all` lists them, for a source to set one.

<!-- End of the generated section. -->
