Hi @Xiphware, yes I check ODK documentation before posting the question and I try difrent methods or formulas, but it doesn't work in the case 1, and in the case 2 its not clear for me the construction of the expresion I try this: regex(.,'[A-Z]'), but it doesn't work.
One option will be to use a hidden calculate question. After getting the age, you can use if statement to set the DocumentType variable.
ie if(${age} >= 18, 'CC', 'TI')
Actually strictly speaking its not. The regex qualifier '*' will match zero or more; the qualifier '+' will match 1 or more. So the following will ensure all the chars are uppercase: