The answer to questions 1 and 8 should be the same. Please suggest me what validation should be applied for question 8?

The answer to questions 1 and 8 should be the same. Therefore, what condition should be imposed for question 8?

@kluv, you could do it as outlined in the image shared below:

In the survey tab of your XLSForm:

Data entry screen as seen in Enketo: when the two questions are different

Data entry screen as seen in Enketo: when the two questions are same

Reference XLSForm:

Constraint.xlsx (8.9 KB)