Constraint using (.)

1. What is the problem? Be very detailed.
1st Question: Type Age(integer)
2nd Question: Select Educational Attainment(select_one)

If Age < 19 and Educ = opt 7, then [Error]

2. What app or server are you using and on what device and operating system? Include version numbers.
Testing the XLSForm on:

3. What you have you tried to fix the problem?

selected(., 'A207') and ${age} < 19
	below age, all error except opt 7
	above age, all error
. != 'A207'
	error when opt 7 is selected

(. != 'A207') and ${age} <19
	below age 19, all good
	above age 19, all opt error

4. What steps can we take to reproduce the problem?

5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.
This is my testing document?

Test I (10).xlsx (39.8 KB)

Am I doing it wrong somewhere?

your constraint should i think be as below:
not(selected(., 'A207') and ${age} < 19)

Hurray! :smiley:

It worked! This problematic constraint was easily solved!

Thank you very much: @noel_cartong!

This forum really is helpful!