Hi all,
Actually I am pretty sure this has been asked before, but i did my best to see questions and did not find the right solution.
I have three questions.
All questions are select one questions.
But the choices of the third question should be a result of what is selected in the first and second questions.
For example
Q1. What governorate you are coming from?
1.A
2.B
3.C
Q2. What shelter type
1.G
2.F
3.H
Q3. what is the name of shelter. choices must be shown based on questions before. for instance.
1.T (if A and G selected)
2.R (if B and G selected)
3.E (if A and G selected)
4.W (if A and G selected)
5.O (if C and G selected)
6.P (if A and F selected)
You may need to rethink the logic of your form: according to this, Q3 shouldn’t be shown at all (ie should be hidden) if shelter type H is selected. Also, there appears to be more than one option only when A & G are selected [ie choose between T, E or W]; whereas for all the other options - R, O & P - all their Q1+Q2 permutations are mutually exclusive anyway, so there would only ever be a single option shown/nothing to choose between.
So it would appear the only time you really need to display Q3 is if A & G are selected, which can be accomplished with a simple relevant expression instead; no choice list filter needed.
Or am I missing something?
1 Like
Dear this is an example.
The idea of my question is that the third question must be shown always. but the choices will vary according the choices selected in the two earlier questions. Some choices may appear together, so the data entry enumerator may select one of them, some choices may be appear solely for certain selection of the previous choices.
So, as i imagine, there should be away to multiply the different choices together to be filter for the selection.
Got my idea?
I think I understand what you are getting at: you want a general purpose way to enable specific options based on arbitrary permutations of the previous selections [lets call them antecedents]. To accomplish this in the general case you’ll need to explicitly specify the required permutation(s) of antecedents for each of the resulting options [lets call them consequents].
Have a look at this form for a general approach to do this. You’ll see that each of the consequent options has associated columns containing the necessary value(s) of each of the antecedents (I call then filterA and filterB, but you can call them whatever you want). These are all then checked in the choice_filter for the followup question.
The options displayed for Q3 will follow the permutations you have defined against each optionC:
Here’s the form if you want to play around:
SelectFilter.xlsx (18.4 KB)
2 Likes
Thank you so much dear, It works this way
2 Likes