A quiz component that counts only the first answered values.
Returns a key value object with any type of data as value.
View exampleName | Type | Description |
---|---|---|
type * | "field.quiz" | Set component type. |
data * | writable | Data with values that will be processed or changed. |
label | string | Label above the component. |
hint | string | Hint text. |
instruction | string | – |
options * | array | An array of questions. |
options[] | object | – |
options[].border | boolean | – |
options[].disabled | boolean | – |
options[].key * | string | – |
options[].label | string | A title of answer. Supports markdown. |
options[].options * | array | An array of answers. |
options[].options[] | object | – |
options[].options[].correct | boolean | Whether the value is correct. |
options[].options[].hint | string | Text that appears when answer checked. Supports markdown. |
options[].options[].label * | string | Text of answer. Supports markdown. |
options[].options[].value * | any | Returned value. |
validation | condition | Validation based on condition. |