Constraint a response based on multiple criteria (to ensure data validity)

hello i’m wondering how i can restrict the enumerator from choosing (married /divorced/widowed,separtaed) from the martial status if the family member role is (son/daughter) and age is less than 14


child marital status.xlsx (11.0 KB)

Do you mean you wish to skip a question (marital status) if the age is less then or equal to 14?

1 Like

@Kal_Lam no exactly i want to display an error message if the enumerator chose (married/divorced/widowed/separated) when the member role is either (son/daughter) and the age is less than 14
in other word i want the enumerator to able to chose only (single) as a marital status if the conditions i mentioned earlier were true

Hello i have the following constraint that work on ODK but not enketo how can i make it work ?
it prevents the enumerator to choose anything but single from the member marital status
if the respondent family member role was either(son/daughter) and their age was less than 14


test2.xlsx (29.7 KB)

@abed_jayy1, maybe you could do the same as outlined in the image shared below:

In the survey tab of your xlsform:

In the choices tab of your xlsform:

Image 2

Data entry screen as seen in Enketo: when a condition is not satisfied

Data entry screen as seen in Enketo: when a condition is not satisfied

Data entry screen as seen in Enketo: when a condition is satisfied

Data entry screen as seen in Enketo: when a condition is not satisfied

Data entry screen as seen in Enketo: when a condition is not satisfied

Data entry screen as seen in Enketo: when a condition is not satisfied

Reference xlsform:

Constraint.xlsx (11.6 KB)

3 Likes

Smart solution, especially the post OR portion…
Great thinking @Kal_Lam and quite a thought provoking bid by @abed_jayy1 , bravo.

1 Like