Suggestion T3701
Visible to All Users

Show total time left to complete the Quiz

created 5 years ago

I have a requirement where I have to show how much time is left to complete the survey. The JSON has following attributes:

"title": "Semester1",
"showProgressBar": "top",
"showTimerPanel": "top",
"maxTimeToFinish": 300,
"focusFirstQuestionAutomatic": "true",

This shows me "You have spent 27 sec on this page. You have spent 27 sec of 5 min in total."

I want to show you are left with 4 min and 33 sec of 5 min in total OR 4 min and 33 sec left out of 5 min in total

To achieve this I added the below attribute to my JSON:

"showTimerPanelMode": "survey",

And now it only shows - You have spent 2 min 19 sec of 5 min in total.

Can you please advice me which attribute will show me the total time left to complete the survey ?

Answers approved by surveyjs Support

created 5 years ago

Hello,
I think we will add an event, where you can define/change the text your want to show. We will update this ticket when we implement it.

Thank you,
Andrew
SurveyJS Team

    Comments (1)

      Hello,
      Sorry, I forgot that we already have the event survey.onTimerPanelInfoText. You can modify options.text to any text you need. You will need additionally survey.timeSpent property.

      Thank you,
      Andrew
      SurveyJS Team