Initialization Object
The Initialization
object is a JSON object which is passed as the first parameter to window.LearnosityApp.init()
method.
It includes all the information needed for authentication, user identification, Question workflow, and UI elements such as save or submit buttons.
Properties
= mandatory property
-
allow_negative_scores boolean
When set to true, this feature will allow questions to have negative scores, which will penalize the user by negating from the total score if the answer is incorrect.
-
captureOnResumeError boolean
By default, when initializing an activity in the "resume" state, Questions API will trigger an error for any question's response_id not found within the Learnosity database.
-
custom_widget_options object
This allows the clients to pass configuration data to certain third-party custom Questions and Features.
-
disable_auto_link boolean
Sets whether URLs, entered by the user should automatically become clickable-links.
-
disable_spokenmath_user_inputs boolean
This allows the clients to disable spokenmath in math questions user input.
-
disable_spokenmath_distractors boolean
This allows the clients to disable spokenmath in question distractors.
-
enable_formula_keyboard_lazy_render boolean
Sets whether formula and chemistry keyboards should render once an input is first focussed, rather than in the background when all other UI elements are first being rendered.
-
math_renderer string
This option allows you to overwrite the math_renderer option inside all questions.
-
mirror_visibility boolean
If enabled, the visibility of floating elements such as the Calculator or Image Tool will mirror that of the question or feature to which they belong.
-
name string
Activity name, used when submitting and retrieving student responses via Learnosity's Reports API and Data API.
-
render_with_captured_questions boolean Deprecated
If set, Questions API will attempt to render questions using saved data within the Learnosity database, instead of the values passed in the questions array.
-
question_source string
If set, Questions API will attempt to render questions using saved data within the Learnosity database, instead of the values passed in the questions array.
-
renderSaveButton boolean
If enabled, Questions API will render a save button, enabling users to save their current progress to the Learnosity database.
-
show_distractor_rationale boolean | DistractorRationaleOptions
Options for controlling how distractor rationale are displayed based on the student's response.
-
showInstructorStimulus boolean
If enabled, the content stored inside the instructor_stimulus will be shown above the question's stimulus.
-
skip_highlight_animation boolean Deprecated
This property skip_highlight_animation is superseded by skip_replay_animation which can be used for general usage to skip animations for all question types.
-
skip_replay_animation boolean
Causes replay animations to be skipped for all Question types, when set to true.
-
type string
The activity type defines various behaviors around saving and submitting, such as where to store the assessment data and the availability of public methods around saving and submitting.
-
validateOnSubmit boolean
If enabled, Questions API will determine whether instant feedback should be provided when the users submit their assessment.