Do a final round of validation and get the validated answers.
This method will not update render instructions. It is more for when you need to make sure that the form is really clean and get the final validated answers for further usage, e.g. calling API, store into database, etc.
validated answer or false
if form is not clean
Clear answers of the entire form.
Optional
options: UpdateAnswerOptionsoptions
Clear answer of a question.
question id
Optional
options: UpdateAnswerOptionsoptions
Clear answers of the entire group.
group id
Optional
options: UpdateAnswerOptionsoptions
Get sanitized configs of this form.
You can persist it and use it to reconstruct the form later.
configs
Get a set of instructions to be used for rendering frontend UI.
render instructions
Import answers to the form.
answers
Optional
options: UpdateAnswerOptionsoptions
Reset answers of the entire form to default answers.
Optional
options: UpdateAnswerOptionsoptions
Reset answer of a question to default answer.
question id
Optional
options: UpdateAnswerOptionsoptions
Reset answers of the entire group to default answers.
group id
Optional
options: UpdateAnswerOptionsoptions
Select invididual choice.
This method can be used by questions with choice
or choices
as [[type]] only.
choice id
selected/unselected
Optional
options: UpdateAnswerOptionsoptions
Set answer of a question.
question id
answer
Optional
options: UpdateAnswerOptionsoptions
Set answer of a question with any
as [[type]].
question id
answer
Optional
options: UpdateAnswerOptionsoptions
Set answer of a question with choice
as [[type]].
question id
choice's value
Optional
options: UpdateAnswerOptionsoptions
Set answers of a question with choices
as [[type]].
question id
choices' values
Optional
options: UpdateAnswerOptionsoptions
Optional
onFormUpdate: FormUpdateListenerStatic
validateValidate configs.
The following validations will be conducted:
choice
or choices
as type without choicesonSelected
configsPut strict
as true
to validate the following:
onSelected
configsconfigs
strict
validation result
Construct a form.