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.18k stars 808 forks source link

Progress bar counts invisible questions when calculating the total progress value #8514

Closed MrSatyam77 closed 3 months ago

MrSatyam77 commented 3 months ago

Survey JS Customs progress bar documentation link.

My Progress Bar Not Completed 100% even all answer is fillable. Code link.

Description: I am adding one dynamic matrix in Survey Form. I added the field dynamically with SurveyJS. If I select the Yes then my second column value visible. If I select the No then my second column value not visible. When All Column value is Yes then It's working fine. But when I select two field NO and second field value not hide and progress count is not display correctly

Can anyone please address that how can i ignore the value If it's not visible in matrix?

JaneSjs commented 3 months ago

Hello @MrSatyam77, A custom progress bar uses the default survey.progressValue property value. However, the survey.progressValue counts invisible questions to calculate the total number of questions.

View Demo with a standard Progress bar image

I will reach out to our developers regarding the possible option to exclude invisible questions from the total progress number.

MrSatyam77 commented 3 months ago

@andrewtelnov this issued is not resolved which version (survey-core, survey-angular-ui) it's resolve ?

https://codesandbox.io/p/sandbox/surveyjs-angular-forked-ryc43s?file=%2Fpackage.json%3A14%2C35