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.11k stars 801 forks source link

Invisible questions counted in progress #2439

Open till-tomorrow opened 3 years ago

till-tomorrow commented 3 years ago

I have some questions that have visible: "false" That means they are invisible to users.

I want to track the survey completion progress. So, I have set the following: "progressBarType":"questions"

Then I have this in the js file: var surveyProgress = survey.getProgress(); console.log(surveyProgress);

Are you requesting a feature, reporting a bug or asking a question?

Bug, asking question

What is the current behavior?

The progress bar shows the count of invisible questions as well. This confuses the users filling the survey.

What is the expected behavior?

The invisible questions should not be counted in the progress.

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

andrewtelnov commented 3 years ago

@till-tomorrow Please use the latest version v1.8.6. It should work fine now.

Thank you, Andrew

till-tomorrow commented 3 years ago

Thanks, Andrew. The invisible questions are not getting counted (in v1.8.6) in the progress but survey.getProgress() does not give the correct progress now. Can you please help me with this issue?