Validating a response based on previous questions

Welcome to the community @horekultura! You could do the same as outlined in the image shared below:

In the survey tab of your xlsform:

Data entry screen as seen in Enekto: (when a wrong entry is made)

Data entry screen as seen in Enekto: (when a correct entry is made)

Reference xlsform:

Constraint.xlsx (9.0 KB)