How to auto select a response for the subsequent question basing a response from a previous question?

Hello,
How are you? Could you guide me, if my question:
A: Do you provide any routine postpartum care? 1. Always 2. Occasionally 3. Never
B: Do you provide routine immediate newborn? 1. Always 2. Occasionally 3. Never

If I choose a question A 3. never. Can question B automatically answer is 3. never?

Hi @Ah_ly,

You could do the same as outlined in the image below:

In the survey tab of your xlsform:
Image 0.1

In the choices tab of your xlsform:
Image 0.2

Data entry screen seen in Enketo:


Here Never is automatically selected in Q2 when Never is selected in Q1.

Reference xlsform:
Auto Select.xls (29.5 KB)

Have a great day!

1 Like

The problem with this is that when the question’s default is defined by a calculation, then the user’s input is ignored and reverted back to the calculated value. So, this is not an affective default value, it’s a forced value that the enumerator won’t be able to override. In that case, the question might as well not be shown.

Just happened the same to me.
@Kal_Lam how can we avoid the calculation override the enumerator input?