Question T5539
Visible to All Users

Getting answer from survey

created 4 years ago

I am using survey JS on reactjs & am rendering a survey & am trying to get the grab the answer that the user entered

I have attached screenshots of the property of my questions on SurveyJS & have entered my code below

On line 36, I am trying to print the answers on the screen to confirm that the answers match up with what the user entered

Answers approved by surveyjs Support

created 4 years ago

Hello,

You need to set the following option:
``JS
survey.showPreviewBeforeComplete = 'showAnsweredQuestions';

Code
Here is the live sample on our site - https://surveyjs.io/Examples/Library?id=survey-showpreview&platform=jQuery&theme=modern#content-result Thanks, Serge SurveyJS Team
    created 4 years ago

    Hello,
    Do you want to show the answers before posting them?
    You can set survey.showPreviewBeforeComplete property to 'showAnsweredQuestions'.
    Here is the example.

    Thank you,
    Andrew
    SurveyJS Team

      Comments (1)

        Hello Andrew
        Thanks for the quick response

        I would like to see the answers once the survey is done, do you have any documentation on how to do that?