surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.12k stars 802 forks source link

Multi-Page Survey with Timer - No required validation occurs when the timer lapses #7742

Closed JaneSjs closed 8 months ago

JaneSjs commented 8 months ago

User Issue: T16546 - Timer/quiz question https://surveyjs.answerdesk.io/internal/ticket/details/T16546


To reproduce the issue, run this demo. Answer question 1 and question 2; when the time elapses, a survey is completed regardless of a required question on page 3. image

Expected behavior: a validation error appears preventing a survey from being completed; a timer stops at 0.

andrewtelnov commented 8 months ago

I believe it is a correct behavior. Otherwise, what is the point of having timer if the survey could not be finished in this time? If you wish to have a required questions, then please move them into the started page. The timer will be started when a user click on "Start" button on the start page. Your user will have time to fill all required questions on the started page before the timer is started. Please set survey.firstPageIsStarted property to true to make the first page started.

Thank you, Andrew