attribute_overrides - Initialization - Questions API

Questions API Initialization

attribute_overrides

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

If an attribute is specified as true, then it will override this attribute to true in question JSON for all questions which support this attribute in the activity.

If an attribute is specified as false, then it will override this attribute to false in question JSON for all questions which support this attribute in the activity.

If an attribute is unspecified, the behaviour specified by the question JSON should apply.

Values

Attribute path attribute_overrides

Type object

Possible values

  • "instant_feedback" will toggle visibility of the Check Answer Button in the question.
  • "spellcheck" will turn the browser spellcheck on or off.
  • "validation.accent_sensitivity" an object containing the accent sensitivity settings.
    • "enabled" Controls whether accents will be ignored when checking the response against the valid responses. For example, when set to true and the valid response is "café," then "cafe" will be marked as correct.
    • "accent_penalty_points" This will apply a penalty to the score if the response contains accents. For example, if the valid response is "café," then "cafe" will be marked as correct but with a penalty.

Versioning

Version added: v2021.2.LTS

Was this article helpful?

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