question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option cascading for storeOthersAsComment

See original GitHub issue

Are you requesting a feature, reporting a bug or asking a question?

Bug in code, or bug in documentation.

What is the current behavior?

Some options are configurable at several levels; for example storeOthersAsComment and questionsOrder can be set at the survey level as well as at the question or page level. In case of questionsOrder, the behavior is intuitive: (according to docs, haven’t verified this)

  1. The value at the survey level is a default.
  2. The value at the page level allows us to change the default for specific pages.

For boolean variables this is different; if you set storeOthersAsComment to false for the survey, then setting it to true for a specific question does not work.

What is the expected behavior?

I would expect boolean variables to cascade, for example when set to null, or simply missing from the JSON, they should take the value from the parent, in this case the survey. Instead the survey level variables seem to do a hard override.

How would you reproduce the current behavior (if this is a bug)?

  1. Go here: https://embed.plnkr.co/u88GcOmZm7zrVtwYE1HS/
  2. Choose “other”.
  3. Type something in the comment field.
  4. Click complete.

Provide the test code and the tested page URL (if applicable)

https://embed.plnkr.co/u88GcOmZm7zrVtwYE1HS/

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewtelnovcommented, Apr 8, 2019

@SamMousa I have fixed the bug. New unit test is added. The fix will be avalable in the next minor update that we will release tomorrow-aftertomorrow.

Thank you, Andrew

1reaction
andrewtelnovcommented, Apr 8, 2019

I made this property invisible. However, I feel we still have to fix the bug.

Thank you, Andrew

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add a Dropdown Menu to a Form | Free Angular Example
"None" is used when none of the proposed options suit a respondent; "Other" allows respondents to enter their own option into a comment...
Read more >
https://unpkg.com/survey-react@1.8.36/survey.react...
It can be "choices" for dropdown question * options.obj - the instance of ItemValue ... storeOthersAsComment to change the behavior on the survey...
Read more >
Use options to customize the Survey Editor, Survey Builder ...
setObject.call(this,t),this.options&&this.property){var o=this.options. ... on page next",storeOthersAsComment:"Store 'others' value in separate field" ...
Read more >
How to create Cascading Dropdowns in React JS - YouTube
Here I will create some dummy data array for country, state and city and I will show in the dropdown with select/ option...
Read more >
ReactJS Cascading Dropdown List Or Dependent Select Option
cascadingdropdown #dependentdropdownReactjs Implementing the cascading dependent dropdown list select option element.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found