Survey-library: goNextPageAutomatic property should not work for checkbox/matrix

Created on 15 Sep 2016  路  6Comments  路  Source: surveyjs/survey-library

If goNextPageAutomatic property set to true, on answering all questions, the survey goes on the next page.
It should not work for checkbox and matrix questions. Currently, on setting on check, the survey goes on the next page which is wrong.

bug fixed

All 6 comments

4 questions support this property only: radio, dropdown, rating and text.
For more information take a look at unit test: "goNextPageAutomatic: should not work for complex questions like matrix, checkbox, multiple text".

I've found a bug where if you set the valueName property on a checkbox type item and goNextPageAutomatic: true it automatically jumps to the next page upon the first click of a checkbox. I'm guessing it's some part related to the code that looks like this.tryGoNextPageAutomatic(name);

^ Actually, I don't know why I was using valueName vs just name and title in my test fwiw. When using name+title all works as expected so this may be a non-issue

@elsigh It sounds as a bug to me. It is a valid scenario. We will look at it.

Thank you,
Andrew

@elsigh I have reproduced the bug in a unit test and fix it. The fix will be available in the next release.

Thank you,
Andrew

Nice work!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexmc6 picture alexmc6  路  3Comments

halexiev-hedgeserv picture halexiev-hedgeserv  路  4Comments

aslanbeily picture aslanbeily  路  4Comments

GuiAfonso picture GuiAfonso  路  4Comments

dmitrykurmanov picture dmitrykurmanov  路  3Comments