Birth Date field
What it does
A Birth Date field asks for a date of birth in three boxes. On an English (United States) store view they are Month, Day and Year, with the hints MM, DD and YYYY. The visitor types the numbers; there's no calendar. You find the field in the builder's left panel, in the Date & Time group, and add it by dragging it onto the form, as described in Adding fields and sections.
To see the answer, go to Content → WebForms → Inbox and open the submission. It reads "Apr 17, 1988", as it does in a notification email.
When to use
Choose Birth Date when you need a date of birth, for example for an application that has an age requirement. Typing a year is quicker than paging back through a calendar. For a delivery or visit day, use Date.
Settings
Go to Content → WebForms → Manage Forms, click the form's name, then click Form Builder. Click the field on the form. Its settings show in the right panel, on the tabs General and Appearance. You'll change these settings most often:
- Label (General tab) is the question above the three boxes. A new field is called "Date Dob"; give it your own, such as "Date of birth".
- Required makes the visitor fill in all three boxes before the form can be sent. If the form has two Birth Date fields, see Limits.
- Personal Data is Personal data for this field type, so the APIs, including the one AI assistants use, mask the answer for a connection without permission to see personal data. See Personal data masking.
The field has no minimum or maximum age. The table below lists every setting. Visitors see a change after you click Publish Changes in the builder's top bar.
All settings of this field
| Setting | Where in the panel | Values | Translatable |
|---|---|---|---|
| Enable Field | General → Basic | On or off | No |
| Label (required) | General → Basic | Text | Yes |
| Field Code | General → Basic | Text | No |
| Required | General → Basic | On or off | No |
| Required Error Message | General → Basic | Text | Yes |
| Help Text | General → Basic | Formatted text | Yes |
| Tooltip | General → Basic | Formatted text | Yes |
| Pre-fill with Customer Data | General → Field Settings | On or off | No |
| Hide in Submissions | General → Submission Display | On or off | No |
| Allow in Staff Email Subject | General → Submission Display | On or off | No |
| Submission Label | General → Submission Display | Text | Yes |
| Personal Data | General → Privacy | By field type — Personal data, Not personal, Personal data | No |
| Desktop | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Tablet | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Mobile | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Show Label | Appearance → Style | On or off | No |
| Help Text Position | Appearance → Style | Below input, Above input | No |
| Container Classes | Appearance → CSS | Text | No |
| Input Classes | Appearance → CSS | Text | No |
| Custom Attributes | Appearance → Advanced | Text | No |
| Inline Style | Appearance → Advanced | Text | No |
Validation
The field checks the date when the visitor clicks Submit. One message shows under the boxes:
| Check | What the visitor sees when it fails |
|---|---|
| Required | "This is a required field." |
| Month isn't 1 to 12 | "Please enter a valid month." |
| The day doesn't exist in that month | "Please enter a valid day (1-28)." The number is the last day of the month the visitor typed. |
| Year missing, before 1900 or after this year | "Please enter a valid year (1900-2026)." The second number is the current year. |
| A day later than today | "Please enter a date from the past." Today is accepted. |
Logic
- Start a rule: no. Only fields with options can start a rule. A Logic tab appears on a Birth Date field only once a rule shows or hides it, and lists that rule.
- Show or hide this field: yes, from a rule that starts on a field with options. See Show or hide fields and sections.
- Email conditions: yes, with Is, Is Not, Greater Than (later) and Less Than (earlier). Write
the date as year, month and day: Less Than
1980-01-01matches everyone born before 1980. See Condition operators.
Limits
- Two Birth Date fields on one form can stop it. When a required Birth Date field comes below one that isn't required, and the visitor leaves the first one empty, its three boxes turn red when they click Submit, no message shows, and the form isn't sent. Use one Birth Date field per form. If you need two, turn Required on for both, or put the required one above the other.
- The field doesn't check an age. To accept only adults, say so in Help Text and check the date when you handle the submission.
- The year range and the check for a date in the past run in the visitor's browser only.
Troubleshooting
- Visitors can't send the form, and the Birth Date boxes are red without a message. The field isn't required and was left empty, and a required Birth Date field comes below it on the form. See Limits.
- Your change doesn't show on the storefront. Changes stay in the draft until you click Publish Changes. See Drafts, publishing and versions.
What's next
- Date field: a day picked from a calendar, such as a delivery date.
- Personal data masking: which answers are masked, and for whom.