Author API Initialization
default_checked
Controls whether Custom Points mode is enabled by default when creating new activities or loading activities for the first time.
When set to true:
- When creating a new activity, Custom Points mode is automatically enabled. The toggle switch will be checked. The custom points column are loaded with the items' original points and are editable.
- When opening an activity for the first time in a session, Custom Points mode is enabled. The toggle switch will be checked. The custom points column are loaded with the items' custom scores if they exist or original points, and are editable.
When set to false or not set:
- When creating a new activity, Custom Points mode is disabled. The toggle switch will be unchecked. The custom points column are loaded with the items' original points and are read-only.
- When opening an activity for the first time in a session, Custom Points mode is disabled. The toggle switch will be unchecked. The custom points column are loaded with the items' original points and are read-only.
This setting is ignored for cached load or re-opening an activity in the same session. Custom Points mode will reflect the saved state from the activity.
Examples
// Showing custom points toggle switch but unchecked (OFF)
var initializationOptions = {
"config": {
"activity_edit": {
"item": {
"custom_points": {
"toggle": {
"show": true,
"default_checked": false
}
}
}
}
}
};
Values
Attribute path config.activity_edit.item.custom_points.toggle.default_checked
Default false
Type boolean