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

defaultValueExpression stopped working for specialized question types #7280

Closed
andrewtelnov opened this issue Nov 1, 2023 · 0 comments
Closed
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@andrewtelnov
Copy link
Member

The following JSON doesn't work since v1.9.115

  ComponentCollection.Instance.add({
    name: "newquestion",
    questionJSON: {
      type: "text",
      inputType: "number"
    },
  });
  const survey = new SurveyModel({
    elements: [
      { type: "newquestion", name: "q1" },
      { type: "newquestion", name: "q2" },
      { type: "newquestion", name: "q3", defaultValueExpression: "{q1} + {q2}" }],
  });

The regression was introduce after fixing a minor bug components&defaultValueExpression.
We did not have enough unit tests on this functionality.

@andrewtelnov andrewtelnov added bug user issue An issue or bug reported by users labels Nov 1, 2023
@andrewtelnov andrewtelnov self-assigned this Nov 1, 2023
@JaneSjs JaneSjs added this to the v1.9.116 milestone Nov 6, 2023
@tsv2013 tsv2013 closed this as completed in 5b9ec3c Nov 7, 2023
@RomanTsukanov RomanTsukanov changed the title defaultValueExpression for question component stopped working defaultValueExpression stopped working for specialized question types Nov 7, 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
Development

No branches or pull requests

2 participants