Quantcast
Channel: Topics in Category: Can I do this with LimeSurvey? - LimeSurvey forums
Viewing all articles
Browse latest Browse all 17529

Mutually Exclusive Answers to a multiple choice question using javascript - by: whowe1

$
0
0
Anybody have a solution to this? I was able to get it working (conditions and all) on Chrome by changing the click functions to change functions and calling trigger('click') after setting the checked attribute to false but it doesn't work in IE at all.

So what I'd like to get working is to have 2 questions. The condition for question 2 is that the answer to question 1 is "Yes".

Basically...

Q1 Yes => change state from checked to not checked => yes is unchecked and question 2 is hidden
Q1 Yes => change state from not checked to checked => yes is checked, no is unchecked, and question 2 is shown
Q1 No => change state from checked to not checked => no is unchecked
Q1 No => change state from not checked to checked => no is checked, yes is unchecked, and question 2 is hidden

Viewing all articles
Browse latest Browse all 17529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>