Hello,
I have been trying to create a survey using SurveyCreator, where I have multiple questions with RadioGroup type where correct answer is fed via JSON, as well as via preview mode, and I have seen the survey getting saved, however it is getting reset if the survey gets refreshed. This does not happen for other question types. Please check and revert.
Thanks,
Rutvij
Hello,
Could you please provide us with example? To be honest, I do not understand the issue from your description:
"I have multiple questions with RadioGroup type" - what is it?
"correct answer is fed via JSON" - what do you mean?
"I have seen the survey getting saved, however it is getting reset if the survey gets refreshed" - what scenario are you talking about?
Thank you,
Andrew
SurveyJS Team
The correct JSON should be:
correctAnswer: "All of the above",
I am afraid that correct answer can be lost on converting from radiogroup/dropdown to checkbox and vice versa. The value for checkbox is array and for radiogroup/dropdown is the single value. We can't keep it correctly anyway, since you can have several answers for checkbox and only one for radiogroup.
Thank you,
Andrew
SurveyJS Team
Thanks Andrew.
I guess I did convert it from checkbox and copied the questions and proceeded to edit the JSON, so that should explain it. Can you please see if they can fix this so newbies like me do not have to scratch their heads and be a burden to you?
OK. We will correct defaultValue/correctAnswer accordingly to question type. Here is the related issue on GitHub. The fix will be available in v1.7.26.
Thank you,
Andrew
SurveyJS Team