Showing a message when multiple answers are selected | XM Community
Skip to main content
Hi All,



I want to show a message whenever my survey respondents answer a multiple choice question correctly. See below:

!



When the question only has one correct answer ("blue"), my javascript works fine. Here's a snapshot of my code:

!



However, when I enable multiple correct answers, the code does not work any more if I change the javascript to below:

!



Can anyone help and let me know what I am doing wrong? Thank you!
The element type changes to checkbox when it is a multiple select.

Leave a Reply