OptionalchoicesOptionalcustomAny values that help you determine on how to render the frontend UI or how to perform validation.
OptionaldefaultDefault 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.
OptionaldefaultWhether or not this item is disabled by default.
OptionaldisabledA list of choice id.
This item will be disabled if the requirement is fulfilled.
OptionalenabledA list of choice id.
This item will be enabled if the requirement is fulfilled.
OptionalidItem 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.
OptionalvalidatorsNames 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
choiceorchoicesas [[type]].