Question T15389
Visible to All Users

Re: Any suggestions on how to implement server-side validation of the posted survey?

created a year ago

I met the same problem as you. My service-side needed to verify the completeness of the submitted questionnaires and verify the submitted results. How did you solve this problem at that time? I am looking forward to your reply

Answers approved by surveyjs Support

created a year ago

Hello,
You can handle survey completion on the client-side using the survey.onComplete event and post survey data to your server-side storage. Please refer to the following example: Store Survey Results.

If you wish to validate user answers on the server-side, handle the onServerValidateQuestions event (View Demo), or register a custom expression function which would query a server-side API endpoint and validate a user input (View Demo).

Please let me know if you have any further questions.