Hi!
I am making a form that has a field with the date of birth of the holder and another field that will select whether the holder is a minor or not (YES or NO). In that selection field (YES or NO), I need to create a condition that if the user enters a date of birth greater than ‘2003-12-01’ and selects the option NO, show an error message, claiming that the holder is of age. I ask for your help.
Welcome to the community, @finercia_americo! 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:
Data entry screen as seen in Enketo: when a condition is not met
Data entry screen as seen in Enketo: when a condition is met
Data entry screen as seen in Enketo: when a condition is met
Data entry screen as seen in Enketo: when a condition is not met
Reference xlsform:
Date Constraints.xls (43.5 KB)
1 Like
Hello, Kal_lam. Thank you so much for your support. I managed to solve it.
1 Like