This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Initialization Option Questions API

showCorrectAnswers

This flag has different behaviors based on the value provided for state.

In "initial" or "resume" state:

  • When set to true, the correct answer will be shown when the user choose to check answers.
  • When set to false, the correct answer will not be shown.
  • When omitted, the correct answer will not be shown.

In "review" state:

  • When set to true, the correct answers will be shown together with the user answers.
  • When set to false, the correct answers will be hidden.
  • When omitted, the correct answers will be shown together with the user answers.

Note This flag has no behavioral changes in the "preview" state.

Values

Request object key showCorrectAnswers

Type boolean

Was this article helpful?