Author API Methods
changeCustomPointsMode()
Changes the custom points mode in the Activity editor view.
You would want to use this method so that you can enable or disable custom points mode programmatically, allowing authors to assign point values to each Question in an Item.
Examples
// Enable custom points mode
var result = authorApp.changeCustomPointsMode(true);
// Disable custom points mode
var result = authorApp.changeCustomPointsMode(false);
Arguments
-
enabled boolean
Specifies whether to enable or disable custom points mode.
Possible values
true- enables custom points mode, allowing authors to set point values for each Questionfalse- disables custom points mode, reverting to default scoring
Return value
Type boolean
Returns true if the custom points mode change was successful.
Returns false if unable to change the custom points mode.