Hi there,
I've been developing a large health survey using SurveyJS. We have mostly been using the Survey Creator.
Some of our questions are checkbox lists. For instance:
Which of these health conditions do you have?
- Asthma (1)
- Heart disease (2)
- Allergies (3)
- None of the above (-97)
- Prefer not to answer (-98)
I would like to set it so choosing 'None of the above' OR 'Prefer not to answer' automatically deselects the other options. And then if you choose 1-3, the mutually exclusive options are automatically deselected. Moreover, it is important the value is as above, rather than the text value 'none' that appears for the 'has none option' in the Survey Builder.
I have tried implementing this code: https://plnkr.co/edit/H1YjYH?p=preview&preview but this does not work - it will deselect all other options when the -97 is selected, but then one can select other options and the -97 remains in place.
Would you be able to recommend a solution?