Appointment forms break when visitors can pick any time — including 2:00 AM on a Sunday or a slot your team does not actually offer. You need a time picker that only shows valid options: your business hours, at the intervals you schedule, in the format your visitors expect.

Auto Form Builder includes a Time field with a custom dropdown picker that respects earliest time, latest time, and time interval settings. Pair it with a Date field to block weekends and past dates, and you have a complete scheduling form — no custom code, no calendar plugin, and no paid add-on required.

Last updated: Last update 11 August

Why Restrict Time Selection on WordPress Forms?

Open-ended time fields invite bookings you cannot honor. Restricting time selection solves practical scheduling problems:

  • Enforce business hours — only show times between 9:00 AM and 5:00 PM (or whatever your hours are)
  • Standardize appointment slots — offer 15-, 30-, or 60-minute intervals instead of arbitrary minute-by-minute picks
  • Reduce back-and-forth — visitors choose from valid slots upfront instead of requesting times you must reject manually
  • Improve data quality — every submission arrives with a time your team can actually schedule
  • Match visitor expectations — display times in 12-hour AM/PM or 24-hour format based on your audience

Auto Form Builder handles this with field settings in the drag-and-drop form builder — not with JavaScript snippets or third-party scheduling tools.

How the Time Field Works

The Time field renders as a custom dropdown time picker — not a native browser time input. Visitors click the field to open a scrollable list of available times. The selected value is stored in a hidden input and submitted with the form.

Key behaviors:

  • Only times within your configured range appear in the dropdown
  • Only times matching your interval setting appear (e.g., every 30 minutes)
  • A clear button (Ă—) lets visitors remove their selection
  • Keyboard support includes Enter/Space to open the picker and Escape to close it
  • The picker closes when clicking outside the field

This consistent UI works the same across browsers, themes, and embedded forms — unlike native time inputs, which vary by device and operating system.

Time Field Settings for Business Hours

Open any Time field in the form builder to configure restrictions under Time Field Options:

Earliest Time Allowed

Set Earliest Time Allowed to the start of your business day — for example, 09:00 for a 9 AM opening. Visitors cannot select any time before this value. Leave empty for no lower limit (defaults to the start of the day in the picker).

Latest Time Allowed

Set Latest Time Allowed to the end of your bookable window — for example, 17:00 for a 5 PM closing. Visitors cannot select any time after this value. Leave empty for no upper limit.

Time Intervals

Choose how precisely visitors can pick times from the Time Intervals dropdown:

  • Every minute — 12:00, 12:01, 12:02…
  • Every 5 minutes — 12:00, 12:05, 12:10…
  • Every 10 minutes — 12:00, 12:10, 12:20…
  • Every 15 minutes — 12:00, 12:15, 12:30…
  • Every 30 minutes — 12:00, 12:30, 1:00…
  • Every hour — 12:00, 1:00, 2:00…

For most appointment and consultation forms, 15-minute or 30-minute intervals strike the right balance between flexibility and manageable scheduling.

Time Format

Choose between:

  • 24-hour clock — 14:30
  • 12-hour clock with AM/PM — 2:30 PM

Values are always stored in 24-hour HH:MM format internally; the display format is what visitors see in the picker.

Starting Time Selection

Optionally pre-select a time when the form loads:

  • No pre-selected time (blank) — default; visitor must choose
  • Current time — pre-fills with the time when the form loads
  • Specific time (you choose) — pre-fills with a custom default such as 10:00

For appointment booking, leave this blank so visitors actively choose a slot.

How to Build a Business Hours Scheduling Form

Step 1: Open the Form Builder

Go to Auto Form Builder → All Forms, then create a new form or open an existing one.

Step 2: Add a Date Field

Drag a Date field onto the canvas for the appointment date. Label it clearly — for example, Preferred Date or Appointment Date.

Configure date restrictions under Date Field Options:

  • Enable Block Past Dates so visitors cannot book in the past
  • Enable No Weekend Selection if you are closed Saturdays and Sundays
  • Set First Allowed Date and Last Allowed Date for booking windows (optional)

Step 3: Add a Time Field

Drag a Time field below the date field. Label it Preferred Time or Appointment Time.

Under Time Field Options:

  • Set Earliest Time Allowed to your opening time (e.g., 09:00)
  • Set Latest Time Allowed to your closing time (e.g., 17:00)
  • Choose Time Intervals — 30 minutes is common for consultations
  • Select Time Format — 12-hour for US audiences, 24-hour for international

Step 4: Set Field Width for Side-by-Side Layout (Optional)

On the Date field settings, set Field Width to Half Width. Do the same on the Time field. Both fields appear on one row — a familiar date/time layout for scheduling forms.

Step 5: Mark Fields as Required

Enable Required Field on both the Date and Time fields so submissions always include a complete appointment slot.

Step 6: Save, Preview, and Publish

Save the form and use the preview to confirm the time dropdown only shows slots within your business hours at the chosen interval. Submit a test entry and verify the date and time appear correctly in your submissions inbox.

Combining Date and Time Restrictions

Date and Time fields work independently but complement each other on scheduling forms:

Restriction Field Setting
Block past dates Date Block Past Dates
Block weekends Date No Weekend Selection
Booking window start/end Date First Allowed Date / Last Allowed Date
Business hours start Time Earliest Time Allowed
Business hours end Time Latest Time Allowed
Appointment slot size Time Time Intervals

Date restrictions are validated on both the frontend and the server — including weekend blocking and past-date rejection. Time restrictions are enforced by the custom dropdown picker, which only generates selectable options within your min, max, and interval settings.

Practical Business Hours Examples

Standard Office Hours (9 AM – 5 PM, 30-Minute Slots)

  • Earliest Time Allowed: 09:00
  • Latest Time Allowed: 17:00
  • Time Intervals: Every 30 minutes
  • Time Format: 12-hour clock with AM/PM
  • Date: Block Past Dates + No Weekend Selection
  • Resulting slots: 9:00 AM, 9:30 AM, 10:00 AM… through 5:00 PM

Restaurant Reservation (11 AM – 9 PM, Hourly)

  • Earliest Time Allowed: 11:00
  • Latest Time Allowed: 21:00
  • Time Intervals: Every hour
  • Time Format: 12-hour clock with AM/PM

Medical Clinic (8 AM – 4 PM, 15-Minute Appointments)

  • Earliest Time Allowed: 08:00
  • Latest Time Allowed: 16:00
  • Time Intervals: Every 15 minutes
  • Time Format: 24-hour clock
  • Date: Block Past Dates, No Weekend Selection

Lunch-Only Delivery Window (11:30 AM – 1:30 PM)

  • Earliest Time Allowed: 11:30
  • Latest Time Allowed: 13:30
  • Time Intervals: Every 15 minutes
  • Why: Narrow window prevents orders outside your delivery capacity

Add Conditional Logic for Smarter Scheduling

Combine time restrictions with Auto Form Builder’s free conditional logic for more advanced scheduling flows:

  • Show a Phone Number field only when a visitor selects a same-day appointment date
  • Display a Number of Guests field when the appointment type is Group Session
  • Reveal a Notes textarea when a specific time slot is selected via conditional equals rules

Conditional logic evaluates in real time as visitors change the date or time, keeping the form relevant without adding extra steps.

Validation and Submission Handling

Time values are validated on the server to ensure they match a valid HH:MM format before storage. Because the custom picker only offers pre-generated slot options, visitors cannot submit arbitrary times outside your configured range through the normal UI.

Date values receive additional server-side checks for past dates, future date limits, weekend restrictions, and min/max date ranges. Required date and time fields block submission when left empty, with standard form validation messaging.

Stored times appear in your submissions inbox, email notifications, and exports in 24-hour format regardless of the display format shown to visitors.

Business Hours Forms on Embedded Sites

Scheduling forms embedded on non-WordPress sites — including Elementor, WP Bakery, Brizy pages, or any external website — use the same custom time picker with min, max, and interval restrictions. Date blocking rules apply identically whether the form is placed via shortcode or embed code.

Download Auto Form Builder — Free Time Restrictions

Business hours time selection with custom dropdown picker, interval control, and date pairing is included in the free plugin — the same plugin that gives you conditional logic, submission management, form styling, and spam protection at no cost.

Install it from the official WordPress.org directory: https://wordpress.org/plugins/auto-form-builder/

Last updated: Last update 11 August

Build forms that embed anywhere — free

Auto Form Builder lets you create multi-step forms, calculators, and lead capture forms in WordPress, then embed them on any site with a single line of code.

Install the free plugin

Frequently Asked Questions

How do I restrict time selection to business hours on a WordPress form?

Add a Time field in Auto Form Builder and set Earliest Time Allowed and Latest Time Allowed under Time Field Options — for example, 09:00 and 17:00. The dropdown picker only shows times within that range.

Can I offer 15- or 30-minute appointment slots?

Yes. Set Time Intervals to Every 15 minutes or Every 30 minutes. The dropdown generates only slots at that interval within your earliest and latest time settings.

Does Auto Form Builder use a native browser time input?

No. The Time field uses a custom dropdown picker that enforces your interval, min, and max settings consistently across all browsers and devices.

Can I display times in 12-hour AM/PM format?

Yes. Set Time Format to 12-hour clock with AM/PM under Time Field Options. Values are stored in 24-hour format and displayed in 12-hour format in the picker.

How do I combine date and time fields for appointment booking?

Add a Date field with Block Past Dates and No Weekend Selection enabled, then add a Time field with your business hours and interval settings. Set both fields to Half Width to display them side by side.

Can visitors clear their time selection?

Yes. The Time field includes a clear button (Ă—) that removes the selected time and resets the field to the Select time… placeholder.

Can I block weekends on the date field for scheduling forms?

Yes. Enable No Weekend Selection on the Date field to prevent Saturday and Sunday selections. Combine with Block Past Dates to ensure only future weekday appointments.

Are time restrictions free in Auto Form Builder?

Yes. Time field restrictions, the custom dropdown picker, and date field scheduling options are included in the free Auto Form Builder plugin on WordPress.org.


Leave a Reply

Your email address will not be published. Required fields are marked *