config.questions_api_init_options - Initialization - Items API

Items API Initialization

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

Attribute path config.questions_api_init_options

Type object

Properties

  • 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.

  • attribute_overrides object

    This allows activity level overrides to be specified in init options.

  • 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.

  • fontsize string

    The text font size used for rendering.

  • math_renderer string

    This option allows you to overwrite the math_renderer option inside all questions.

  • labelBundle object

    Specifies overrides for labels and text content shown in all Question types in the assessment.

  • 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.

  • render_optimization object

    Options for optimizing rendering performance.

  • renderSaveButton boolean

    If enabled, Items API will render a save button, enabling users to save their current progress to the Learnosity database.

  • renderSubmitButton boolean

    If enabled, Items API will render a submit button.

  • showCorrectAnswers boolean

    This flag has different behaviors based on the value provided for state.

  • 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

    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.

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.