Results 1 to 2 of 2

Thread: Complex Javascript Form - Conditional Questions

  1. #1
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Complex Javascript Form - Conditional Questions

    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.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Have a look at my form dependency manager script.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •