how to unenable a question based on the previous question's answer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • amelia170

    how to unenable a question based on the previous question's answer

    I am creating a database with a yes or no answer for question 1.
    Based on that answer, (if they answer yes) they will answer question
    2, then three....Howeve r, if they answer no to question one, I want
    them not to be able to answer question 2 at all.

    Ideas?

    Thanks so much!
  • Tom van Stiphout

    #2
    Re: how to unenable a question based on the previous question's answer

    On 10 Nov 2003 16:38:18 -0800, lvichinsky@bpac al.com (amelia170)
    wrote:

    I think this is a fairly complicated issue. To implement such a
    questionnaire well, you would want it to be data driven. Which means
    an administrator can go in and define questions, and give them various
    attributes. One of the attributes may be a jump table: if answer 1 is
    selected, jump to question X, if answer 2 is given, jump to question
    Y, etc. Then at runtime you can inspect the answer and the jump
    table, and know what question to ask next.

    -Tom.

    [color=blue]
    >I am creating a database with a yes or no answer for question 1.
    >Based on that answer, (if they answer yes) they will answer question
    >2, then three....Howeve r, if they answer no to question one, I want
    >them not to be able to answer question 2 at all.
    >
    >Ideas?
    >
    >Thanks so much![/color]

    Comment

    • Chuck Van Den Corput

      #3
      Re: how to unenable a question based on the previous question's answer

      On 10 Nov 2003 16:38:18 -0800, lvichinsky@bpac al.com (amelia170)
      wrote:
      [color=blue]
      >I am creating a database with a yes or no answer for question 1.
      >Based on that answer, (if they answer yes) they will answer question
      >2, then three....Howeve r, if they answer no to question one, I want
      >them not to be able to answer question 2 at all.
      >
      >Ideas?
      >
      >Thanks so much![/color]

      Simply have events triggered after each question.

      After question 1 is answered, take appropriate action based on its
      value. If it's false, disable/lock/hide/gray out other questions as
      the situation warrants.

      Chuck

      Comment

      Working...