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

A Ranking question value is reset if the `questionsOnPageMode` property is changed at runtime #8500

Closed zenricatlasopen closed 3 months ago

zenricatlasopen commented 3 months ago

Updated

Here is the reproduciable example.

Ranking question response isn't showing when survey property "questionsOnPageMode" set to 'singlePage'. Same happens inside survey js pdf.

package versions:

image

Here's the code:

image

Result:

image

the order should be: 'Item 3', 'value 2', 'text1'

zenricatlasopen commented 3 months ago

@andrewtelnov is there a way we can apply that fix in our application without changing our survey js version?

andrewtelnov commented 3 months ago

@zenricatlasopen You can look at my commit. You need to override a function and add one line of code.

What version you are and why can't you use to the latest one?

Thank you, Andrew

zenricatlasopen commented 3 months ago

@andrewtelnov thank you for respondeing

Do you know how to add that line of code to our app? image

andrewtelnov commented 3 months ago

@zenricatlasopen I can see you are using Creator and other our libraries in your project. Please write to our technical support forum, provide your developer license info and the version of SurveyJS Library you are using. We will try to find a solution.

Thank you, Andrew