Custom (Draft)
Examples
{
"response_id": "60033",
"type": "custom",
"custom_type": "custom_shorttext",
"js": "//docs.learnosity.com/demos/products/questionsapi/questiontypes/custom_shorttext.js",
"stimulus": "What is the capital of Ireland?",
"correct_answer": "Dublin",
"score": 1
}
Attributes
-
is_math boolean
Set to true to have LaTeX or MathML contents to be rendered with mathjax.
Default: false
-
metadata object
Object containing additional information about the question.
-
metadata.distractor_rationale string
Used to display individual response feedback/rationale to the student.
-
metadata.rubric_reference string
A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity
-
metadata.sample_answer string
A sample answer to be displayed on the Learnosity Reports API. HTML is supported.
-
metadata.acknowledgements string
References for any text passages, documents, images etc. used in the question.
-
stimulus string
The question stimulus. This can include text, tables, images, resources and LaTeX entered via the Math Editor.
-
stimulus_review string
HTML/Text content displayed only in review state rendered above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state.
-
instructor_stimulus string
HTML/Text content displayed when
showInstructorStimulus
is set totrue
on the activity. Supports embedded Feature <span> tags. -
type string
Type of question being asked, e.g. 'association'
Default: "custom"
-
ui_style object
Object used to control different aspects of the UI
-
ui_style.fontsize string
Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'.
Default: "normal"
-
ui_style.validation_stem_numeration string
Numeration character to be displayed to the left of the validation label.
Default: "number"
-
custom_type string
A key that identifies this custom type.
-
js string
A URL to a JavaScript file which defines an AMD module for the question. See this knowledgebase article for more information.
-
css string
A URL to a CSS file containing styles for the question.
-
version string
A number that identifies the version of the question e.g. v0.1.0.