Time field
What it does
A Time field asks for a time of day in two dropdowns: hours and minutes, such as 14 : 30. 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.
Hours run from 00 to 23, so 2:30 PM is 14 : 30. Minutes come in steps of five, from 00 to 55. To see the answer,
go to Content → WebForms → Inbox and open the submission. It reads "14:30", as it does in a notification
email.
When to use
Choose Time for a preferred time of day, such as a delivery slot or the best time to call. Add a Date field next to it for the day.
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:
- Available Hours (General tab) are the hours the visitor can choose. A new field offers all 24. To offer your opening hours only, select those, such as 09 to 17.
- Available Minutes are the minutes the visitor can choose. A new field offers every five minutes. For half-hour slots, select only 00 and 30.
- Required makes the visitor choose a time before the form can be sent.
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 |
| Available Hours | General → Field Settings | 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 | No |
| Available Minutes | General → Field Settings | 00, 05, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 | 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 — Not personal, 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
| Check | What the visitor sees when it fails |
|---|---|
| Required | "This is a required field." under the dropdowns. |
| Only the hour or only the minutes chosen | "Please select a valid time" under the dropdowns, also when the field isn't required. |
Logic
- Start a rule: no. Only fields with options can start a rule. A Logic tab appears on a Time 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 the comparisons for text: Is, Is Not, Contains, Starts With and
Ends With. Compare with the time as the Inbox shows it, such as
09:30. Starts With09matches every time from 09:00 to 09:55. See Condition operators.
Limits
- The field shows hours from 00 to 23 only. The visitor can't pick AM or PM; say so in Help Text if your visitors expect it.
- Available Hours and Available Minutes only limit what the dropdowns offer. The store doesn't check the hour again when the form arrives. If a time outside your hours would cause trouble, confirm it with the customer.
- There's no date in this field. Add a Date field for the day.
Troubleshooting
- The visitor sees "Please select a valid time". They chose the hour but not the minutes, or the other way round. Both are needed.
- 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: ask for the day with a calendar.
- Condition operators: send an email only for morning times.