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.23k stars 818 forks source link

A progress bar doesn't highlight previous pages when programmatically changing the survey.currentPage/currentPageNo #8901

Open JaneSjs opened 1 month ago

JaneSjs commented 1 month ago

T20125 - Progress bar passed class not being set when resuming https://surveyjs.answerdesk.io/internal/ticket/details/T20125


Consider the 'Continue Incomplete Survey' usage scenario. A developer programmatically specify the current page number to start a survey from the last visited page. However, the progress bar doesn't hightlight pages which were not actually visited by user but which were filled with answers previously. View Demo

image

JaneSjs commented 1 month ago

To set pages visited, enable the page.passed option for target pages.