Optional
choicesOptional
customAny values that help you determine on how to render the frontend UI or how to perform validation.
Optional
defaultDefault answer.
Questions with any
as [[type]] accept any
as answer.
Questions with choice
as [[type]] accept any
as answer.
Questions with choices
as [[type]] accept any
[] as answer.
Optional
defaultWhether or not this item is disabled by default.
Optional
disabledA list of choice id.
This item will be disabled if the requirement is fulfilled.
Optional
enabledA list of choice id.
This item will be enabled if the requirement is fulfilled.
Optional
idItem id.
It should be unique throughout the entire form.
It will be auto generated if you leave it falsy.
Question type.
Questions with any
as [[type]] accept any
as answer.
You shouldn't have to specify [[choices]] for this question.
Questions with choice
as [[type]] accept any
as answer.
You should specify [[choices]] for this question.
Usually radio button group or dropdown select will be used for this type of questions.
Questions with choices
as [[type]] accept any
[] as answer.
You should specify [[choices]] for this question.
Usually checkbox group or select with multiple mode turned on will be used for this type of questions.
Optional
validatorsNames of the validators to be used for validation when answer of this question is changed.
Validators will be executed in sequence of their positions in the list.
Choices for questions with
choice
orchoices
as [[type]].