questions_api_init_options
Provides direct access to some Questions API functionality which allows you to set global overrides for all Questions in the assessment, such as Question rendering options and scoring behavior.
Values
Request object key config.questions_api_init_options
Type object
This object has the following properties which can be configured.
-
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, Items 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/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.
-
renderSaveButton boolean
If enabled, Items API will render a save button, enabling users to save their current progress to the Learnosity database.
-
show_distractor_rationale boolean object
Displays distractor rationales based on the learner'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
Controls whether to skip the rendering animation for the drawing Question type.
-
skip_replay_animation boolean
Causes replay animations to be skipped for all Question types, when set to true.
-
validateOnSubmit boolean
If enabled, Items API will determine whether instant feedback should be provided when the users submit their assessment.
-
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.