View Full Version : Complex Javascript Form - Conditional Questions

01-22-2007, 01:50 PM
I have a complex form that I am trying to code without success. The code is a form with 10 questions. The problem is that some of the questions are only to appear based on the entries in two of the prior questions. Specifically, Questions 1 - 3 will always appear, with Questions 2 and 3 being Yes/No radio buttons. If Question 2 is checked "yes" and Question 3 is "no", then Questions 4 - 10 all should appear. However, if Question 2 and 3 are both answered "yes", then questions 4-7 and 10 should appear. If Question 2 Is "No" and Question 3 is "Yes", then questions 4 - 5 and 10 should apear. And finally, if Question 2 and 3 are both "No", then only question 10 will appear.

Any help with the coding of this would be greatly appreciated. I've been scratching my head over it for quite a while.

01-22-2007, 02:21 PM
Have a look at my form dependency manager script (http://www.twey.co.uk/?q=forms).