Question T4861
Visible to All Users

Question properties are not getting saved while using SurveyCreator

created 4 years ago

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

Show previous comments (1)

    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