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

Matrix-like questions allow setting incorrect values #6629

Closed
JaneSjs opened this issue Aug 1, 2023 · 0 comments
Closed

Matrix-like questions allow setting incorrect values #6629

JaneSjs opened this issue Aug 1, 2023 · 0 comments
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Aug 1, 2023

The following exception is thrown on an attempt to select a Single-Choice Matrix option:

survey.core.min.js:6 Uncaught TypeError: Cannot create property 'Fourches' on string 'nc'
    at t.onMatrixRowChanged (survey.core.min.js:6:722437)
    at Object.func (survey.core.min.js:6:711024)
    at e.propertyValueChanged (survey.core.min.js:6:152458)
    at e.setPropertyValue (survey.core.min.js:6:151292)
    at t.set (survey.core.min.js:6:711563)
    at Object.checked (eval at parseBindingsString (knockout.js:305:238), <anonymous>:3:575)
    at Object.eb (knockout.js:266:275)
    at HTMLInputElement.e (knockout.js:435:247)

To reproduce the issue, run the demo (View Demo) and select the NON CONCERNE option in the first row:
image

The survey was taken at https://stackoverflow.com/questions/76004183/survey-js-default-value-in-a-matrix-of-radiobutton.

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Aug 1, 2023
@andrewtelnov andrewtelnov self-assigned this Aug 1, 2023
@andrewtelnov andrewtelnov changed the title Single-Selection Matrix - Cannot create property 'Fourches' on string 'nc' Do not allow to set incorrect value into our complex questions Aug 4, 2023
@tsv2013 tsv2013 closed this as completed in 184a697 Aug 4, 2023
@RomanTsukanov RomanTsukanov changed the title Do not allow to set incorrect value into our complex questions Matrix-like questions allow setting incorrect values Aug 9, 2023
@andrewtelnov andrewtelnov added this to the v1.9.102 milestone Aug 9, 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