AnswerSheet
Contents
[
Hide
]
This element generates a numbered matrix of bubbles representing answers to a list of questions. Bubbles can be arranged in multiple columns to make more efficient use of space.
AnswerSheet is best suited for exam papers where you want to fit the maximum number of answers on a single page.
Declaration
This element is declared as an object with "element_type": "AnswerSheet"
property.
The total number of exam questions that the answer sheet corresponds to is specified in the elements_count property.
{
"element_type": "AnswerSheet",
"elements_count": 100
}
Required properties
Name | Type | Description |
---|---|---|
element_type | string | Must be "AnswerSheet" (case-insensitive). |
elements_count | integer | The total number of exam questions that the answer sheet corresponds to. |
If set the value of elements_count parameter to
0
, AnswerSheet element will not be rendered.
Optional properties
Name | Type | Default value | Description |
---|---|---|---|
name | string | n/a | Used as an element’s identifier in recognition results and as a reminder of the element’s purpose in template source; for example, “Biology Quiz”. This text is not displayed on the form. |
columns_count | integer | 4 | The number of columns to arrange lines into. Use multiple columns to make the answer sheet more compact. |
answers_count | integer | 4 | The total number of bubbles (answers) for each question. You can only set the same number of answers for all questions. If the number of answers is different for each section of the exam, use multiple AnswerSheet elements. |
start_id | integer | Automatic | The number of the first line used as a base for further numbering. If omitted, the number will be calculated based on the numbering of previous elements. |
vertical_margin | integer | 0 | Vertical spacing between lines, in pixels. |
bubble_size | string | “Normal” | Size of bubbles: "extrasmall" , "small" , "normal" , "large" , or "extralarge" . |
bubble_type | string | “round” | Bubble style: "round " or "square" . |
answers_list | array | [“A” … “Z”] | Characters to be drawn inside bubbles. The total number of array items must match the value of the answers_count property. |
column | integer | 1 | The number of the column where the AnswerSheet element will be placed. Only applicable if AnswerSheet is placed in a multi-column Container. |
Allowed child elements
None.
Example
{
"element_type": "Template",
"children": [
{
"element_type": "Page",
"children": [
{
"element_type": "Text",
"name": "Biology Quiz",
"font_size": 16,
"font_style": "bold"
},
{
"element_type": "EmptyLine"
},
{
"element_type": "AnswerSheet",
"name": "Plants",
"elements_count": 15,
"columns_count": 3,
"answers_count": 5,
"bubble_size": "large",
"vertical_margin": 10,
"answers_list": ["α", "β", "γ", "δ", "ε"]
}
]
}
]
}