Question T4715
Visible to All Users

Answers displaying issue

created 4 years ago (modified 4 years ago)

Hello, I have a React application with "survey-react" library, and two pages in it from where I can access the SurveyJS form.

I've made a "base" component for it, so the code is reusable and only props may be different.

SurveyJs form works excellent on one page, submitting and displaying correct answers. On the other page, though, some answers may appear missing (or even set to "False" for checkbox type).

I've compared the answers in the console through debugging and they look identical, both answers and questions are read from the same place in the database.

Take a look at the last question of the survey. Somehow, the page on the right half interprets "True" value as false
Clipboard-File-1.png

What could be the issue? Doesn't survey form tolerate continuous re-rendering? (Every form is rendered twice, once for questions and answers respectively)

Please let me know if I should provide more details and/or code samples

Comments (3)

    Hello,

    Could you please provide us with a minimal sample to reproduce the issue on our side?

    Thanks, Serge
    SurveyJS Team

      Yeah, sorry. Appears it was a mistake in backend API which returned slightly different survey jsons. This ticket may be closed.
      Thanks for your help!

        Glad to know the issue has been resolved.

        Thanks, Serge
        SurveyJS Team