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 Assess API

validQuestions()

Depending on the mode, it returns:

  • "simple": an array of the valid response_ids in the current activity
  • "detailed": an object with response_ids as keys and boolean as value indicating whether the quesiton is valid or not
  • "detailedWithPartials": an object with response_ids as keys and object as value containing:
    • correct: boolean indicating whether the question is valid or not
    • partial: array detailing whether each individual response is valid or not is returned only if the question can have multiple responses

Arguments

  • mode string

    Default: "simple"

    Possible values:
    • "simple"
    • "detailed"
    • "detailedWithPartials"
  • callback function
    Optional. Callback that must be used to get results in cases where asynchronous Question types are present.
    • results object
      As per return description above.

Return value

None (undefined).

Was this article helpful?