Help logic code, answers to sub-answers
Posted: August 23rd, 2011, 7:56 am
Hello,
This is my firs post, I'm glad I have found this very useful website.
I have a programming question, hope someone can help.
I need to create a new application for my work. We will use questionnaires with answers and sub-answers (even sub-sub-answers).
I am wondering if it is possible to have, for example, one question field with a selection of [1. yes], [2. no], [3. maybe], then a second question field with a selection of answers automatically reflecting the choice made in the first field. That is, if selected [1. yes], then [1.1 blue], [1.2 green], but if selected [2. no], then [2.1 Red], [2.2 Yellow] and so on.
Thus, it would dramatically reduce the length of the whole questionnaire.
Is there a way of using Logic code to have something like : If Q1 is 1, then set of answers 1, but if Q1 is 2, then set of answers 2 etc.?
For example:
Q1: 1. Yes
1.1 Blue
1.2 Green
2. No
2.1 Red
2.2 Yellow
3. Maybe
3.1Grey
3.1.1Dark grey
3.1.2 Light grey
Thank you
This is my firs post, I'm glad I have found this very useful website.
I have a programming question, hope someone can help.
I need to create a new application for my work. We will use questionnaires with answers and sub-answers (even sub-sub-answers).
I am wondering if it is possible to have, for example, one question field with a selection of [1. yes], [2. no], [3. maybe], then a second question field with a selection of answers automatically reflecting the choice made in the first field. That is, if selected [1. yes], then [1.1 blue], [1.2 green], but if selected [2. no], then [2.1 Red], [2.2 Yellow] and so on.
Thus, it would dramatically reduce the length of the whole questionnaire.
Is there a way of using Logic code to have something like : If Q1 is 1, then set of answers 1, but if Q1 is 2, then set of answers 2 etc.?
For example:
Q1: 1. Yes
1.1 Blue
1.2 Green
2. No
2.1 Red
2.2 Yellow
3. Maybe
3.1Grey
3.1.1Dark grey
3.1.2 Light grey
Thank you