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

Composite question: The "Other" value and comments are stored outside the object produced by the question #9378

Closed
JaneSjs opened this issue Jan 30, 2025 · 0 comments · Fixed by #9389
Assignees
Labels
bug user issue An issue or bug reported by users

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Jan 30, 2025

T21680 - Issue with Composite Question: "Other" Value Not Included in the Composite Object
https://surveyjs.answerdesk.io/internal/ticket/details/T21680


When a survey stores Other values in a separate field in a survey response (the default behavior), a composite question's value appears as follows:

{
   'contact-information': {
      'text-question': 'some value',
      'dropdown-question': 'other'
   },
   'contact-information-Comment': 'some value'
}

However, this doesn't aligns with a customer's expectations. The user requires to store a comment value within a question's response, as follows:

{
   'contact-information': {
      'text-question': 'some value',
      'dropdown-question': "other",
      'dropdown-question-Comment': "some value"
   }
}

However, there is a problem with restoring a composite question's answer in this case. Neither of the above responses works. Please check the following demo: View Demo. You'll see that the Other item remains empty.

Please elaborate on this usage scenario.

@JaneSjs JaneSjs added question user issue An issue or bug reported by users labels Jan 30, 2025
@andrewtelnov andrewtelnov added bug and removed question labels Feb 3, 2025
@andrewtelnov andrewtelnov changed the title Clarification on storing the answer of a Composite Question with a Dropdown and the Other option value The other value and comment in a Composite Question stores incorrectly Feb 3, 2025
@RomanTsukanov RomanTsukanov changed the title The other value and comment in a Composite Question stores incorrectly Composite question: The "Other" value and comments are stored outside the object produced by the question Feb 4, 2025
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

Successfully merging a pull request may close this issue.

2 participants