Option cascading for storeOthersAsComment
See original GitHub issueAre 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)
- The value at the survey level is a default.
- 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)?
- Go here: https://embed.plnkr.co/u88GcOmZm7zrVtwYE1HS/
- Choose “other”.
- Type something in the comment field.
- Click complete.
Provide the test code and the tested page URL (if applicable)
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
I made this property invisible. However, I feel we still have to fix the bug.
Thank you, Andrew