Question T2160
Visible to All Users

Add timer with question set

created 6 years ago

Hello Serge,

Can we add timer while attempting survey? Example 1 hr for a survey?

Please suggest.

Answers approved by surveyjs Support

created 5 years ago

Hello,

Yes, you can get the survey.currentPageNo and the survey.data, store these values somewhere and use again to initialize the survey.
Here is the working plunker sample - https://plnkr.co/edit/Mwe3vY3ai2fgTbCSn2qu?p=preview

Thanks, Serge
SurveyJS Team

    created 6 years ago

    Hello,
    Please use surveymodel.maxTimeToFinish property.
    survey.maxTimeToFinish = 3600; //1h = 60m * 60s

    Thank you,
    Andrew
    SurveyJS Team

      Comments (1)

        Hello Andrew,

        I have seen the example provided ->
        [https://surveyjs.io/Examples/Library/?id=survey-quiz&platform=Angular2&theme=default]

        Is it possible to save instead of complete once timer runs out ?

        Regards,
        Akhil