I have two problems I need help with.
I want to autoselect multiple options in Q2 based on answers from multiple select questions (Q1).
Q1. How do you access land for farming? (multiple select)
b. lease from individual
c. lease from community
Q2. Type of land ownership
a. Full ownership
b. Partial/contractual ownership with an individual
c. Partial/contractual ownership with the community
d. No ownership
So, for example, if “owned” and “lease from the community” is selected in Q1, then option a and c should be automatically selected in Q2.
Again, if “owned” and “resettlement” are selected in Q1, then the option “full ownership” should be automatically selected in Q2.
Problem 2: I want to autoselect multiple options based on responses from two or more different questions
Q1. Do you own land for farming?
Q2. What is your main mean of transport? (select one)
Q3. Do you watch television at home?
Q4. Which of the following assets does the household have
d. sewing machine
So if the response to Q1 is “yes”, Q2 is “car” and Q3 is “yes”, I want options “a=land”, “b=car” and option “c=television” to be automatically selected in Q4.
Thanks in advance
This post might give you an idea:
You could do it as outlined in the image shared below:
In the survey tab of your xlsform:
In the choices tab of your xlsform:
Data entry screen as seen in Enketo: selected Supervisor A when selected District 1
Data entry screen as seen in Enketo: selected Supervisor A when selected District 2
Data entry screen as seen in Enketo: selected Supervisor B when selected District 3
Data entry screen as seen in Enketo: selected Supe…
If you have further questions, don’t hesitate to ask.
@hakan_cetinkaya Thanks for the help. Yes, the post helps in a way. However, my issues are
I want to autoselect more than one option.
The reference for auto-selection is from a multiple select question or different questions
The example you referred me to works for single select. It works when an option in a single select question is used to autoselect an option in another question. I tried for multiple select and only one option gets automatically selected.
@RayRay, may I suggest using cascading select questions? That might be helpful for your Problem 1.
@RayRay, maybe you could do this as outlined in the post discussed previously:
You could do the same as outlined in the instructions provided in the image below:
In the survey tab of the xlsform:
In the choices tab of the xlsform:
Data entry screen as seen in Enketo:
Select Auto Checkbox.xls (61.5 KB)
Have a great day!
@Kal_Lam, I did see the post you referred me to. The difference is that In that post the options are the same for the questions, so what is selected earlier is automatically selected in the next and subsequent question. If I do the same, I would be autoselecting the wrong options.