Gets information about a custom question, including the current question state and student's answers.
CQ.getInfo(string id) : Object
- id – The custom question ID to get information for.
An object containing the following properties:
|divId||String||ID of the div element where you should render the custom question.|
|version||String||The version of the custom question.|
|mode||String||The mode the question should be rendered in.
Possible values are:
- Active - The user is currently taking the exam.
- Review - The user is reviewing the answers and feedback from the exam.
- Print - The teacher is printing a paper copy of the exam.
- PrintKey - The teacher is printing a paper copy of the exam, with the correct answer key.
|question.body||String||Body of the question.|
|question.feedback||String||General feedback of the question.|
|question.type||String||Type of the question.|
|question.texttype||String||Text type for short answer questions.|
|question.data||String||Data for the question for custom question types.|
|question.choices||Array||Array of choice objects for multiple choice, multiple answer, and matching questions.
Each object contains the following properties: id, body,
answer, and feedback.|
|question.answers||Array||Only provided for when mode is PrintKey or Review. Array of correct answers for this question.|
|submission.answer||String||Student's answer as set by CQ.setAnswer.|
|submission.attempt.choices||Array||Array of choice IDs ordered for this attempt.|
|submission.attempt.parameters||Array||Array of objects. Each object corresponds to a parameter for this
attempt and has the following properties: name and value.|
|submission.attempt.publicdata||String||(Optional) Attempt specific custom data as specified by publicdata value in <custom>.|
|response.pointspossible||Number||Points possible for this question.|
|response.pointsassigned||Number||Only provided when mode is
Review. Points achieved.|