validQuestions - Methods - Assess API

Assess API Methods

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

Note This method is synchronous. It immediately returns the validation results for all Questions in the current activity. Unlike the Questions API equivalent, the Assess API version of validQuestions() does not support a callback parameter.

Arguments

  • mode string

    Default: "simple"

    Possible values

    • "simple"
    • "detailed"
    • "detailedWithPartials"

Return value

None (undefined).

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.