The current format of Show If and Hide If now supports both the date of birth as well as date range questions. With this added capability, you can show/hide minor consent questions, vaccination consent questions, etc. that are based on the date of birth. The updated format supports the followings:
- The supported operands are greater than (gt), greater than and equal to (gte), less than (lt), and less than and equal to (let).
- The use of today is also supported as a reference date to compare.
- The supported time intervals are:
- years/year
- months/month
- days/day
Example formats:
Question Type |
Format |
Date of birth question |
question[{{message key}}] GT/LT/GTE/LTE "today-X{{time intervals}}" where:
-
message key is the message key of the question that want to compare the value against.
-
X is any number.
-
time intervals are either years, months, days.
Example: OR[question[q.screening.eligibility.age.range] EQ "Youth (aged 13 to 17)" | AND[question[q.screening.age] GT "today-12years" | question[q.screening.age] LT "today-18years"]]
|
Age range question |
question[{{message key}}] GT/LT/GTE/LTE number where:
message key is the message key of the question that want to compare the value against.
-
number is any number.
Example: question[q.screening.how.many.people.in.your.group] GTE 2
|
|
Comments
0 comments
Please sign in to leave a comment.