We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f71308 commit b31edb0Copy full SHA for b31edb0
src/models/QuestionModel.js
@@ -132,6 +132,14 @@ export default class QuestionModel {
132
this.answer = this.answer ? [this.answer] : []
133
}
134
135
+ // Check if we have an answer already (when we have a pre-filled form)
136
+ // and set the answered property accordingly
137
+ if (!this.required && typeof options.answer !== 'undefined') {
138
+ this.answered = true
139
+ } else if (this.answer && (!this.multiple || this.answer.length)) {
140
141
+ }
142
+
143
this.resetOptions()
144
145
0 commit comments