Extensions/Assessment/mcqLabelPrefix

Adds a prefix to all multiple-choice labels (correct answer and distractors).

Ignores block UI and radio button under option.

Supports

  • multi-select MCQs
  • shuffle responses
  • columns

Sets up an item load listener to add a prefix to all MCQ possible response labels.

Parameters:
NameTypeAttributesDescription
optionsobject<optional>

Object of configuration options.

Properties
NameTypeAttributesDescription
maskstring<optional>

Which mask pattern to use. Supports upperAlpha (default), lowerAlpha, and numeric.

suffixstring<optional>

Any suffix you want added to the label prefix. Defaults to ..

prefixesarray<optional>

Array of custom string prefixes to use.

Example
const options = {
     mask: 'upperAlpha',
     suffix: '.',
     prefixes: [],
}

LT.init(itemsApp, {
    extensions: [
        { id: 'mcqLabelPrefix', args: options },
    ],
});