You can gate a signup form by birth date using three date conditions built from the day, month, and year parts of the field: the year condition carries the under-18 decision, while the month and day conditions segment adults after they pass.
- The year condition compares the birth year to a threshold you choose and routes applicants to a pass path or a fail path.
- The month condition checks which month the applicant was born in, stored as a two-digit number (01 for January, 04 for April).
- The day condition checks which day of the month the applicant was born on, stored as a two-digit number and usable as a range, as in Qualtrics' first-half-of-month example.
- After the year gate, the minor path can terminate the applicant, divert them to a different screen, or hold the record for review.
- Capture the birth date as separate day, month, and year fields, write one year comparison, attach a branch to it, and test with boundary dates.
Every signup form that asks for a birth date eventually faces the same fork: an applicant enters a date, and someone under 18 is on the other side of it. The question is what your form does next. The three date conditions below are the ones you can build from a date field's day, month, and year parts. Together they let you route applicants before they ever reach a confirmation screen.
These conditions come from the Qualtrics branch logic documentation, which walks through how a form or survey compares stored answers to thresholds and sends people down different paths. The same mechanics apply wherever your signup platform lets you branch on a captured value. The examples below use Qualtrics' own scenarios because they show the comparisons in plain language.
Why a birth date field needs a gate at all
A birth date field on its own just stores what the applicant typed. It does not stop an applicant who is under 18 from continuing. Qualtrics says branches are useful for sending respondents down different paths in a survey, which is what the gate needs.
Your paths might be "welcome and confirm" for adults, and "ask a parent" or "show an age-restricted message" for minors. The gate is the rule that picks the path. Without a rule, everyone follows one line regardless of what they entered.
Branch logic also works off more than typed answers. Qualtrics notes you can use branch logic to direct respondents to different survey flow elements based on variables like question responses or embedded data. So if your signup platform passes an age band from another system, you can branch on that instead. For this post, assume the date itself is on the form.
The GOV.UK service manual frames the same idea from the other side: you can use the Check a service is suitable design pattern to ask users questions to help them work out if they can or should use your service. Gate the form at the start, and the applicant learns whether to continue before filling out a long profile.
The three date conditions
The three date conditions are the day comparison, the month comparison, and the year comparison. A signup form that captures a birth date as day, month, and year can evaluate all three. The under-18 gate lives on the year condition, and the other two give you supporting cuts of the same list.
Condition 1: the year condition
The year condition compares the birth year to a threshold you choose. Qualtrics' own example shows the shape: they set a survey year and then write the rule as Year is Greater Than or Equal to 2021. For a signup form, the threshold is the latest birth year that still counts as an adult on the day the form is submitted.
For an under-18 gate, the adult pass path must match birth years at or before the cutoff, so set the direction to fit the adult pass path before wiring the branch. You can compare Birth Year greater than or equal to a cutoff, or Birth Year less than a cutoff, depending on which branch you want to be the "keep going" path. What matters is that you pick one direction, write it once, and apply it to every form where the same age rule applies.
Qualtrics' example shows a multi-year survey setting one floor and sticking with it: they note the first year they are running the survey is 2021 and that they plan to run it for multiple years, so they want respondents whose Year is Greater Than or Equal to 2021. On a signup form, the under-18 cutoff must move with the calendar, so recompute the threshold from the current date — the latest birth year that is 18 or older today — rather than keeping a fixed year, and note that the threshold year itself is a boundary case. An applicant born in the threshold year is a boundary case; decide whether that person passes or fails, then encode it in the same single comparison.
The year condition is the gate. The two conditions below are cuts you may want after the gate does its work.
Condition 2: the month condition
The month condition checks which month the applicant was born in. Qualtrics states the comparison directly: since they are only interested in respondents in January, they want respondents whose Month Is Equal to 01. On a signup form the same rule reads Month Is Equal to a two-digit month you name.
Months are stored as numbers on a two-digit scale, so April is 04 and January is 01. A signup form that stores the month this way can run a month cut without any date math.
A month cut does not decide adulthood on its own. It is useful when you segment the adult list: a campaign that runs in a particular month, or a cut of your file where month of birth lines up with a product anniversary. Run the year gate first, then apply the month cut to the people who passed.
Condition 3: the day condition
The day condition checks which day of the month the applicant was born on. Qualtrics' example uses a range: since they are looking for respondents in the first half of the month, they want respondents whose Day is Greater Than or Equal to 01 and Less Than 16. A signup form can use the same range style to slice the list.
Day is stored as a two-digit number too, so the first of the month is 01. A "greater than or equal to 01" clause simply means "starts at the beginning of the month."
Like the month condition, the day condition supports segmentation after the year gate. It does not decide who is under 18. Keep it out of the under-18 branch and use it on the adult path when you need a slice.
How the three conditions compare
Here is the same information side by side, so you can pick which condition to put on the under-18 gate and which to leave for segmentation.
| Condition | Qualtrics example rule | Stored as | Role on a signup form |
|---|---|---|---|
| Year | Year is Greater Than or Equal to 2021 | Four-digit number | Under-18 gate |
| Month | Month Is Equal to 01 | Two-digit number, 01 for January, 04 for April | Segment adults after they pass |
| Day | Day is Greater Than or Equal to 01 and Less Than 16 | Two-digit number | Segment adults after they pass |
The year condition carries the under-18 decision. The month and day conditions sort the people who already passed.
What the form does after the year condition
The year condition picks a path. What happens on the minor path is a design choice you make once and reuse. Qualtrics' documentation shows a complete example of a minor path in action: after viewing the Demographics block, any respondent who is male and under 18 will be shown a special Exit Block and then have their survey terminated. In their flow, males who are under 18 years old will be directed out of the survey.
| Minor path shape | What happens |
|---|---|
| Terminate | The applicant stops at the age message and never reaches the profile steps |
| Divert to a different path | The applicant sees a parent or guardian screen, an age-restricted product page, or a notification list |
| Hold for review | The applicant finishes the form and the record is flagged for a person to look at |
Three shapes come up on signup forms.
- Terminate. The applicant stops at the age message and never reaches the profile steps. This is the Exit Block pattern above.
- Divert to a different path. The applicant sees a "parent or guardian" screen, an age-restricted product page, or a notification list instead of a full account.
- Hold for review. The applicant finishes the form, and the record is flagged so a person looks at it before any access is granted.
Qualtrics' example terminates male respondents under 18. Your signup form may need to hand the applicant off instead. Both are valid; pick the one that matches what happens next for a real person under 18.
Branches can also stack. Qualtrics says you may want to nest multiple items under 1 branch or have a branch within a branch. On a signup form, a nested branch might read: the year gate first, then on the adult path a month cut for a campaign, then on the minor path a separate message for a different product line. Nesting keeps one form serving several audiences without duplicating it.
Building the year gate on your form
You build the year gate in four moves.
| Move | What you do |
|---|---|
| 1 | Capture the birth date as separate day, month, and year fields |
| 2 | Write one year comparison with a chosen cutoff year and direction |
| 3 | Attach a branch to the comparison for pass and fail paths |
| 4 | Test with a boundary date in the cutoff year, one above, and one below |
- Capture the birth date as separate parts. Day, month, and year in their own stored fields, because the conditions above each compare one part.
- Write one year comparison. Pick the cutoff year and one comparison direction. Keep the phrasing identical across every form where the rule is the same.
- Attach a branch to the comparison. The pass path continues to the next form step. The fail path goes to your exit or divert screen.
- Test with a boundary date. Enter a birth date in the cutoff year itself, one year above it, and one year below it. Confirm each goes to the path you intended.
Qualtrics describes branch logic as a way to direct respondents to different survey flow elements. Put the year gate before any step that commits resources — before a payment step, before a long profile, before a confirmation email fires.
If your platform lets you branch on embedded data as well as typed answers, you can read an age value passed from another system. Qualtrics' note that branch logic works on variables like question responses or embedded data covers both options. Whatever you choose, store the raw birth date as well as the branch outcome, so you can re-run the gate later if the rule changes.
Applying the month and day conditions after the gate
Once an applicant clears the year gate, the month and day conditions sort the adults. Qualtrics' examples give you the syntax shape for both.
For a month cut, the rule is Month Is Equal to the two-digit month. Qualtrics uses 01 for January in their own case. For a day cut, the rule is a range: Day is Greater Than or Equal to a start and Less Than an end.
Both cuts run only on the adult path. Stacking them gives you a tighter slice: an adult born in a given month, and within that month, a given stretch of days. Nesting applies here too — Qualtrics' note about a branch within a branch means the month cut can sit inside the adult branch without touching the minor branch at all.
If your campaign rules change — a different month, a different day range — you edit the threshold on that one condition. The year gate stays as written.
Worked example
Suppose your form captures the birth date as three fields. On today's date, the cutoff birth year for the adult pass path is the latest birth year that is 18 or older today. You write one rule: Birth Year less than or equal to that cutoff is the pass path. Someone born in the cutoff year itself is a boundary case, so you decide once that they pass and encode it in the same comparison. An applicant one year above the cutoff goes to the minor path, where you show an age-restricted message. Adults continue, and only there does a campaign month cut (for example, Month Is Equal to 04) narrow the list.
Three conditions, three roles
The year condition is the under-18 gate. The month and day conditions segment adults after they pass. Qualtrics' branch examples show each comparison in its own form, and the nesting note shows Qualtrics allows branches within branches, so the same pattern can be used on a signup form only if your platform supports nesting. Build the year gate first, attach your exit or divert path to it, then add month and day cuts on the adult path when a campaign needs them.
Next step today
Open one signup form that already asks for a birth date, write the single year comparison against a cutoff you recompute from today's date, and enter three test dates: one in the cutoff year, one year above, and one year below. Confirm each lands on the path you intended before you touch any other form.
Questions readers ask
Can birth year alone decide if someone is under 18? Not exactly: a birth-year threshold gets you close, but the boundary year still needs a decision, which is why you recompute the cutoff from the current date and encode the boundary case in the same comparison.
Where do the month and day conditions fit? Only on the adult path after the year gate passes the applicant; they segment adults and never decide the under-18 question.
Do I need a separate field for each date part? Yes, because the three conditions each compare one part: the year condition compares the year, the month condition the two-digit month, and the day condition the two-digit day.
What should happen on the minor path? Pick one of three shapes once and reuse it: terminate the applicant at the age message, divert them to a different screen, or hold the record for review.
Does this work outside Qualtrics? The mechanics apply wherever your signup platform lets you branch on a captured value or on embedded data passed from another system.
Related guides: Child data checks: 5 rules before a signup form · Consent request on signup form: 5 checks before go-live · Date rules: 5 wording examples for signup forms.