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.
Public Method Questions API

validate()

Validate the current response for the question instance.

Arguments

  • options object
    • showCorrectAnswers boolean
      When true, correct answers will be displayed with the validation UI.

      Default: false

    • showDistractorRationale boolean | DistractorRationaleOptions

      Determines whether distractor rationale are displayed with the validation UI.

      When omitted, the show_distractor_rationale configuration from the Initialization object will be used in its place.

    • feedbackAttempts boolean
      When true, this will increment feedbackAttemptCount or do nothing if the feedbackAttemptCount limit has already been reached.

      Default: false

  • callback function
    Callback that can be used for asynchronous Question types. Optional.

Return value

None (undefined).

Was this article helpful?