Sets a new answer for the question. This will emit the onAnswerChange event. This is still considered an incomplete answer,
Tag an answer as complete. This will emit the onAnswerComplete event. Useful for saving the current Questionnaire state
Enabled state of question
The level number for nested questions. 0 = root level
Get the linkId of the next question that is enabled.
Note: This function only returns the correct result after the iteration encountered the next enabled question. That is the reason why this is a function - so that the values can be updated of past elements while the iteration is still continuing.
If there is no next item, undefined is returned.
The whole path including the questionnaire url
Example: 'http://refinio.one/questionnaire1/group1/question1'
The current question
Stack of level names, level 0 is the url of the questionnaire
Example: ['http://refinio.one/questionnaire1', 'group1', 'question1']
Optional
subIterator for iterating sub items
Set to true if the validation of the answer failed.
The current value.
This will even be set if the questionnaire is disabled, but it won't be saved when the final response is compiled.
An item representing the current question and other data like the current answer ...