I am trying to create the form with these questions:
type- label- appearance
integer -Date of birth-month- year
select_one sex -Sex
select_one YesNO-Pregnant
I want the Pregnant question only appear for female who is born after Jan 2004, is there any suggestion on this? if I do not want to calculate age?
I understand that even the enumerator will see only mm/YYYY, but the data store with date 01/mm/YYYY
And also can I constraint the Date of birth to be not after June 2021.
So for example : I want to limit the date of birth to be after Jan 1920 and before June 2021 , ln calculation use :::: .>= date(β1920-01-01β) and .<=date(β2021-06-01β)
For question Pregnant to only appear for Female and Born after Jan 2004
in relevant I did : ${sex}=1 and ${DOB}<= date(β2004-01-01β)
DOB - is the date of birth obtained
and sex has two variable 1- female , 2 male