Bug in code, or bug in documentation.
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)
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.
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.
@SamMousa Yes, you are right. We should have a default value for question.storeOthersAsComment and it should not be true or false..
We will work on the fix.
Thank you,
Andrew
Side note: In my opinion, this specific option (storeOthersAsComment) could be fully removed, in analytics there's hardly ever a reason to use it.
It makes analyzing the data more complex and doesn't offer any benefits.
@SamMousa Unfortunately, we can't. We made a bad desicion and add it into question level first.
We do our best to make sure all created survey json, even from early version of the project, are still working.
What we can do, and probably, it is the easiest possible solution, is to hide this property from survey creator.
Thank you,
Andrew
I made this property invisible. However, I feel we still have to fix the bug.
Thank you,
Andrew
Definitely agree if you can't remove it then bug has to be fixed.
It can (should?) be marked as deprecated though; that way you at least have the option to remove it in the next version that breaks backwards compatibility.
@SamMousa The most our surveys are built with help of our Survey Creator. If this property becomes invisible then unlikely somebody would use it.
Absolutely, it worth to mention that it is better to change the behavior on the survey level in property description.
Thank you,
Andrew
Well it is reasonable to enable custom behavior on a per question basis (this specific behavior is just never useful)
@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