Question T1750
Visible to All Users

Binding a custom survey result back when survey form is loaded.

created 6 years ago

hi team,

By default, the survey result is of format {"question_name":"value",…}
When I change the format where I add metadata properties to every question being submitted, the survey result would be of format [ {"name":"question_name", "question_value" : "value", "custom_prop1" : "prop1_value"} , … ].
Is there any way to customize binding the values back to survey schema, when I load the survey in edit or view only mode?

Answers approved by surveyjs Support

created 6 years ago

Hello Alan,
Have you seen survey.data property?
You may set your result json to survey.data property to set the question values.
Here is the example of setting the survey.data and making the survey read only.
Please, let us know if it helps.

Thank you,
Andrew
SurveyJS Team