Public Method Author API

setScoringType()

Set the scoring type of the Item being edited.

You would want to use this method so that you programatically set the Item scoring type, for example.

Examples

var hasUpdatedScoringType = authorApp.setScoringType("per-question");
console.log(hasUpdatedScoringType);

Arguments

  • scoringType string

    The Item scoring type.

    Possible values:
    • "per-question"
    • "dependent"
    • "dichotomous"

Return value

boolean

Returns true if successful.

Returns or false if unable to set the Item scoring type, for example, when not in the Item editor view, or the passed scoringType is not valid.

Related articles

Was this article helpful?