🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

How can we help you?

Find answers, tutorials, and guides to get the most out of Gravity Extra add-ons. (DEV Preview)

Gravity Forms Work Hours Field: Complete Configuration Guide

Last updated: September 19, 2026 • Author: Bong Huynh
Table of Contents

Video walkthrough

Collect Business Opening Hours & Shifts in Gravity Forms
A short walkthrough: install the add-on, add the Work Hours field, choose the time format and steps, then collect opening hours with extra rows for each shift. Watch on YouTube

Collecting accurate business operating hours, clinic consultation availability, restaurant opening shifts, or contractor schedules in WordPress forms often proves challenging when using generic text inputs or disconnected number pickers. The Gravity Forms Work Hours Field Add-on solves this challenge by providing a dedicated, native schedule field designed specifically for the Gravity Forms ecosystem.

This comprehensive configuration guide walks you through every feature of the Work Hours field, from basic drag-and-drop installation and 12-hour/24-hour time formatting to granular time step intervals, day range visibility controls, and multi-row shift repeaters.

System Requirements & Prerequisites

  • WordPress Environment: Version 5.8 or higher.
  • Gravity Forms Core: Version 2.5 or higher (compatible with Basic, Pro, and Elite licenses).
  • PHP Version: PHP 7.4, 8.0, 8.1, 8.2, or 8.3 supported.
  • Add-on Plugin: Gravity Forms Work Hours Custom Field Add-on installed and activated.

Step 1: Installing and Adding the Field to Your Form

To begin collecting operating schedules, first ensure the plugin is activated on your WordPress site. Once activated, the field integrates directly into the visual form editor without requiring external dependencies or third-party libraries.

  1. Navigate to Forms → Forms in your WordPress dashboard and choose an existing form or click Add New.
  2. In the form editor sidebar on the right, expand the Advanced Fields panel.
  3. Click or drag the Work Hours field into your preferred position within the form canvas.
  4. Click on the newly placed field to open the Field Settings panel where you can configure field labels, placeholder descriptions, and administrative rules.
Gravity Forms Work Hours Field Day Selector Dropdown
Figure 1: Frontend preview of the Work Hours day selection dropdown showing preset day ranges and individual days.

Step 2: Configuring Time Formats & Dropdown Steps

Different industries and regional markets follow distinct time conventions. The Work Hours field provides native toggles to accommodate standard civilian 12-hour clocks or international 24-hour military schedules, along with granular time step intervals.

Gravity Forms Work Hours Time Format and Time Steps Admin Settings
Figure 2: Dedicated Work Hours admin settings under the Field Settings tab.

1. Choosing Your Time Format

Under Field Settings → Time Format, choose between the two standardized display modes:

  • 12 Hours (AM / PM): Generates friendly 12-hour selectors with trailing AM and PM designators (e.g. 08:00 AM to 05:00 PM). Ideal for domestic customer-facing forms, salon bookings, and local service providers.
  • 24 Hours: Generates military/European 24-hour selectors ranging from 00:00 through 23:45. Ideal for logistics companies, healthcare facilities, and international commerce platforms.
Time Format Selection Options in Gravity Forms Admin
Figure 3: Radio selectors for toggling 12-hour and 24-hour time display formats.

2. Setting Granular Time Steps

The Time Steps setting determines the interval between consecutive selectable options inside the start-time and end-time dropdowns. You can choose from five standard intervals:

  • 5 Minutes: Maximum precision for strict appointment scheduling, transit arrivals, or medical consultations.
  • 10 Minutes: Flexible granularity suitable for personal training sessions and call back reservations.
  • 15 Minutes: Industry standard for legal, financial, and professional service time tracking.
  • 30 Minutes: Recommended for general retail operating hours, restaurant shifts, and clinic office hours.
  • 60 Minutes: Clean, minimal hourly intervals for broad daily operating windows.
Time Steps Dropdown Intervals in Admin Settings
Figure 4: Selecting dropdown step intervals (5, 10, 15, 30, or 60 minutes).
Frontend Time Step Dropdown Interval Preview
Figure 5: Rendered time options populated at fine 5-minute increments.

Step 3: Customizing Day Ranges & Visibility Controls

By default, the Work Hours day dropdown includes helpful shortcuts such as All days, Mondays to Fridays, and Saturdays to Sundays, alongside individual days of the week. However, certain workflows require respondents to submit individual daily entries rather than broad weekly batches. The add-on provides two administrative toggles to customize this list.

1. Hiding the “All days” Option

When you enable the Hide “All days” checkbox in the field settings, the “All days” preset is removed from the dropdown list. Respondents must choose either a weekend/weekday range or a specific calendar day.

Hide All Days Option Checkbox Setting
Figure 6: Admin checkbox to suppress the “All days” shortcut.
Frontend Day Dropdown Without All Days Option
Figure 7: Frontend dropdown view after suppressing “All days”.

2. Hiding the “Days Range” Option

For organizations that require strictly day-by-day availability (such as rotating shift rosters or variable clinic schedules), enable the Hide “Days range” checkbox. This removes the grouped presets (Mondays to Fridays and Saturdays to Sundays), leaving only individual days.

Hide Days Range Option Setting in Admin Panel
Figure 8: Admin toggle for hiding grouped day ranges.
Frontend Day Dropdown Showing Only Individual Days
Figure 9: Frontend dropdown displaying individual days only.

Step 4: Handling Split Shifts & Multiple Repeater Rows

Modern businesses often operate on split schedules. For example, a restaurant may be open for lunch service from 11:30 AM to 2:30 PM, close for prep, and reopen for dinner service from 5:30 PM to 10:00 PM. Similarly, retail outlets frequently maintain different operating windows for weekdays versus weekends.

The Gravity Forms Work Hours Field includes a native frontend repeater row mechanism to accommodate these multi-shift requirements without requiring separate form fields.

1. Adding Additional Shift Rows

When respondents fill out the form, clicking the + ADD button instantly appends an additional schedule row directly beneath the current entry. Respondents can select different days or duplicate days with secondary time windows.

Adding Multiple Shift Rows with the Repeater Add Button
Figure 10: Multiple work hours rows configured for split shifts and weekend hours.

2. Removing Shift Rows

If a respondent adds a row by mistake or needs to remove a shift window, each secondary row features a clean red delete icon. Clicking the icon immediately removes that specific shift row while maintaining the remaining entries intact.

Deleting Shift Rows Using the Frontend Delete Icon
Figure 11: Dynamic delete icon enabling one-click row removal on frontend forms.

Step 5: Advanced Developer Customizations & Code Hooks

Developers can programmatically tailor the behavior and visual presentation of the Work Hours field using standard Gravity Forms PHP filter hooks.

Customizing Default Field Options in Child Themes

You can adjust frontend button styling or integrate custom validation checks before form entries are committed to the WordPress database. Add the following hook snippet to your child theme’s functions.php file:




functions.php
PHP

// Custom validation hook to ensure closing time occurs after opening time
add_filter( 'gform_field_validation', function( $result, $value, $form, $field ) {
    if ( $field->type !== 'workhours' || !is_array( $value ) ) {
        return $result;
    }

    // Verify each shift row has selected days and valid time range
    $rows = array_chunk( $value, 3 );
    foreach ( $rows as $row ) {
        if ( empty( $row[0] ) ) {
            $result['is_valid'] = false;
            $result['message']  = __( 'Please select operating days for all schedule rows.', 'gravityforms' );
            break;
        }
    }

    return $result;
}, 10, 4 );

Frequently Asked Questions & Troubleshooting

Find answers to common questions and edge-case configuration scenarios when working with the Work Hours field.

How are work hour entries formatted in email notifications and CSV exports?

Entries are formatted as structured multi-line schedule summaries displaying the selected day followed by opening and closing hours (e.g. Mondays to Fridays: 09:00 AM to 05:00 PM). When exported to CSV or Excel, rows are grouped cleanly per entry for effortless payroll or schedule processing.

Can respondents submit multiple shifts for the same day?

Yes. Respondents can click the + ADD button to add a secondary row for the same day (such as a morning 9:00 AM – 1:00 PM shift and an evening 4:00 PM – 8:00 PM shift), providing seamless support for split-shift operations.

Does the Work Hours field work across multi-page Gravity Forms?

Yes. The Work Hours field integrates with Gravity Forms page transitions. Selected schedule values and additional repeater rows are preserved intact when users navigate between form pages or resume draft submissions.

Can I place multiple Work Hours fields within the same form?

Yes. You can deploy multiple Work Hours fields on a single form (for instance, collecting “Regular Office Hours” in one field and “Emergency Support Hours” in another). Each field operates independently with its own repeater rows and settings.

Related Resources & Live Demonstration

Was this article helpful?

Let us know how we can improve our docs.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr