Question T6608
Visible to All Users

returning answer data from doComplete method

created 4 years ago

Hi,

I'm using survey js in a page which has lots of forms. I need to take data from survey sync not from onCompleting or onComplete event. Because I need to validate and fill my data contract only once while going to server side. So I can collect the data from other forms basically, but survey js answer data , I can'get sync. So is there any way to take answer data.

DoComplete method is returning true or false while validating, it is ok, but maybe it can return answer data too.

Answers approved by surveyjs Support

created 4 years ago

Hello,

You can get survey data at any time via the survey.data property. Here is the sample - https://surveyjs.io/Examples/Library?id=survey-data&platform=jQuery&theme=modern

Thanks, Serge
SurveyJS Team