Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-Select Matrix with a Rating Scale column: Custom rate values aren't enabled by default #6625

Closed
JaneSjs opened this issue Jul 25, 2023 · 0 comments · Fixed by #6626
Closed
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Jul 25, 2023

User Issue: T14013 - Breaking change(?) in the "Multiple-Choice matrix"question in the latest release
https://surveyjs.answerdesk.io/internal/ticket/details/T14013


Usage scenario: a user created a Multiple-Choice Matrix with a Rating column in an older version of SurveyJS libraries (v1.9.82). The user manually defined rate items.

{
  logoPosition: "right",
  pages: [
    {
      name: "page1",
      elements: [
        {
          type: "matrixdropdown",
          name: "question2",
          columns: [
            {
              name: "Column 1",
              cellType: "rating",
              rateValues: [
                {
                  value: "item1",
                  text: "Rate Item 1"
                },
                {
                  value: "item2",
                  text: "Rate Item 2"
                },
                {
                  value: "item3",
                  text: "Rate Item 3"
                },
                {
                  value: "item4",
                  text: "Rate Item 4"
                },
                {
                  value: "item5",
                  text: "Rate Item 5"
                }
              ]
            }
          ],
          choices: [1, 2, 3, 4, 5],
          rows: ["Row 1", "Row 2"]
        }
      ]
    }
  ]
};

In v1.9.82, custom defined items appear correctly: View Demo.

image

image

However, in v1.9.98, custom defined rate items do not appear by default: View Demo.
image

This happens because the autoGenerate:false option was not specified for a Rating Scale column. If you disable this option in a survey JSON, custom defined items will appear (View Demo):
image

However, it is expected that this option will be automatically disabled in a new version of SurveyJS libraries if a Rating Scale column has custom defined items.

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Jul 25, 2023
@novikov82 novikov82 transferred this issue from surveyjs/survey-creator Jul 31, 2023
novikov82 added a commit that referenced this issue Jul 31, 2023
…defined rate items aren't enabled by default

Fixes #6625
tsv2013 pushed a commit that referenced this issue Aug 1, 2023
…defined rate items aren't enabled by default (#6626)

Fixes #6625
@OlgaLarina OlgaLarina added this to the v1.9.101 milestone Aug 1, 2023
@RomanTsukanov RomanTsukanov changed the title Multiple-Choice Matrix with a Rating Scale column - The custom defined rate items aren't enabled by default Multi-Select Matrix with a Rating Scale column: Custom rate values aren't enabled by default Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users
Projects
None yet
3 participants