Problem with constraint

i created the attached for to apply a constraint for the below case
When “Type” is ‘large’, the “Size” should be between 60 and 90.
When “Type” is ‘small’, the “Size” should be between 1 and 30.

but the constraint is not working correctly, can somebody help with the correct condition?


kobo_sample_form_final_v5.xlsx (6.5 KB)

To reference a variable value, you need to use ${variableName}, e.g. ${Type} and ${Size}.

1 Like

@fayez_70, this is how you could do it as advised by @wroos:

Reference XLSForm:

kobo_sample_form_final_v5.xlsx (10.2 KB)

You should also be able to learn more about the same through this support article Limiting Responses with Validation Criteria.