Author API Methods
setScoringType()
Set the scoring type of the Item being edited.
You would want to use this method so that you programmatically 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
Type 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
- Per Question, Dichotomous, And Dependent (EBSR) Item Scoring With Examples
- The
getScoringType()
method, which allows you to get the scoring type of the Item being edited.