If self option is selected in the relation question then the age mentioned in q7 should be the same

If self option is selected in the relation question then the age mentioned in q7 should be the same in next age question . how it possible please help me
Household1.xlsx (14.7 KB)

Instead of constraint, you could use calculation ${q34a_0} =‘1’. Or even as relevant filter number(${q34a_0}) > 1.

If you use Collect and the calculation, you could also set the self case to read_only.

1 Like

@dipendra, 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:

image

Data entry screen as seen in Enketo: when a wrong entry is made

Data entry screen as seen in Enketo: when a correct entry is made

Reference XLSForm:

Household1.xlsx (12.8 KB)

1 Like

Dear @Kal_Lam,
Could you, please, review again. it seems, the solution only works for the first person?

.

1 Like

@wroos, thank you for flagging this out. The following update should solve this issue. cc: @dipendra

In the survey tab of your XLSForm:

In the choices tab of your XLSForm:

image

Data entry screen as seen in Enketo: when a wrong entry is made

Data entry screen as seen in Enketo: when a correct entry is made

Data entry screen as seen in Enketo: when a correct entry is made

Reference XLSForm:

Household1.xlsx (12.8 KB)

thanks a lot.

1 Like