WordPress.org

Plugin Directory

Date Filters, Date Picker & Unique IDs for Gravity Forms – Hero Add-On

Date Filters, Date Picker & Unique IDs for Gravity Forms – Hero Add-On

Description

Hero for Gravity Forms lets you disable weekends, past dates and holidays in the Gravity Forms date picker, highlight today’s date, and make date inputs read-only – all without custom code. It also adds powerful date filters, time zone fixes, and unique / random ID generators for coupons, reference numbers and more.

If you use the Gravity Forms Date field for bookings, appointments or event registrations, you’ve probably needed to:

  • Disable weekends so customers can’t choose Saturdays and Sundays.
  • Disable past dates so users can only select today or future dates.
  • Block holidays or blackout dates when your business is closed or fully booked.
  • Allow only specific weekdays (for example Monday–Friday or weekends only).
  • Prevent manual typing in the date input so users must pick from the calendar.
  • Generate a unique ID for each Gravity Forms entry (reference codes, coupon codes, etc.).

Hero for Gravity Forms gives you a visual, no-code way to control the Gravity Forms date picker and to generate unique IDs for entries, without writing or maintaining custom code in your theme.

Features

Hero Essential (this free version) includes core date filters, time zone tools, today highlight, read only date inputs and basic picker animations. Some advanced options are only available in Hero Standard and Hero Advanced. For a detailed breakdown, see the full feature list.

Date Filters for Gravity Forms

Use Hero’s Gravity Forms date filters to control which dates are selectable in the Gravity Forms date picker:

  • Disable past dates so users can’t choose dates before today.
  • Disable weekends (Saturday and Sunday) or any other weekdays you don’t work.
  • Block holidays, vacation days, blackout dates or fully booked days.
  • Allow only a specific date range (minimum and maximum date).
  • Combine rules to fine-tune availability for booking and appointment forms.

These rules are configured directly on the Gravity Forms Date field – no custom JavaScript or PHP code required.

Time Zone aware “today”

When your site has visitors from different time zones, “today” is not the same moment for everyone. Hero’s Time Zones feature helps you:

  • Ensure today’s date in the Gravity Forms date picker is correct for your chosen time zone.
  • Avoid situations where it is already “tomorrow” for some users, but your form still allows “today” as selectable.
  • Keep date limits (min/max dates) consistent for global audiences.

Date picker highlights and animations

Make your date picker easier to use and nicer to look at:

  • Highlight today’s date to give users a quick visual anchor.
  • Choose open animations for the Gravity Forms date picker to match your site’s style.

Read-only date inputs (no manual typing)

If you want to prevent invalid dates or incorrect formats, you can use Hero to make Gravity Forms date inputs read-only:

  • Force users to select a date from the calendar instead of typing.
  • Reduce errors from manually entered dates.
  • Keep date formats consistent across all entries.

Unique IDs for Gravity Forms entries

Hero includes a flexible Unique ID generator for Gravity Forms. Use it when you need a value that is both random and unique per entry, such as:

  • Coupon codes or voucher codes.
  • Ticket IDs, booking references or registration IDs.
  • Internal reference numbers.

You can generate IDs with:

  • Custom length and character sets.
  • Optional prefixes and suffixes.
  • Merge tag support so IDs can be used in confirmations, notifications and other fields.

Random IDs (when uniqueness is not required)

Sometimes you just need a random string for a field and it doesn’t have to be globally unique. Hero’s Random IDs feature lets you:

  • Generate random character strings for passwords, promo codes or internal labels.
  • Control the length and allowed characters.
  • Use random values in any Gravity Forms field where you can use merge tags.

Typical use cases

Hero for Gravity Forms is ideal for:

  • Booking and appointment forms – hide weekends, past dates and holidays so users only book when you are open.
  • Event registration forms – allow only event days or block dates after a deadline.
  • Delivery / pickup date selectors – restrict dates to working days and exclude holidays.
  • Vacation request or leave forms – prevent selecting dates in the past and mark company holidays.
  • Online orders and applications – generate unique IDs, application numbers or ticket codes.
  • Any form using the Gravity Forms Date field where you need to restrict dates.

Screenshots

  • Custom date filters.
  • Standard date filters.
  • Date highlights and read only input.
  • Time zones.
  • Unique IDs.

Installation

Since Hero is an add-on to Gravity Forms, you need to have Gravity Forms installed and active in order to use Hero.

Hero comes in three variants:

  1. Hero Essential, the plugin variant that includes essential functionality and can be downloaded for free.

  2. Hero Standard, which includes extra features not part of the Essential variant. You can download this variant after obtaining a license from https://toroguapo.com/gf-hero/pricing/

  3. Hero Advanced, which adds more advanced functionality on top of what the Standard variant offers. See https://toroguapo.com/gf-hero/pricing/ for more details on this variant as well.

FAQ

Can I disable weekends in the Gravity Forms date picker?

Yes. Hero lets you disable weekends (Saturday and Sunday) or any specific weekdays in the Gravity Forms Date field so users can only select valid working days.

Can I disable past dates or set a minimum / maximum date?

Yes. You can disable all past dates before today, or set custom minimum and maximum dates for the Gravity Forms date picker, for example to allow bookings only within a specific date range.

Can I generate a unique ID for each Gravity Forms entry?

Yes. Hero includes a Unique ID generator that creates random, unique IDs for each Gravity Forms entry. You can use them for coupon codes, ticket IDs, reference numbers and more.

Do I need to write any code or JavaScript?

No. All date rules and unique ID settings are configured visually in the Gravity Forms editor. Hero saves you from writing or maintaining custom code snippets for the Gravity Forms date picker.

Reviews

27, Abril de 2023
We had a small issue using the free plugin. After submitting the ticket team did in-depth analysis, found problems and came up with solution—all that in just one day. Fantastic customer support. Definitely, I am recommending the plugin! Thanks.
Read all 1 review

Contributors & Developers

“Date Filters, Date Picker & Unique IDs for Gravity Forms – Hero Add-On” is open source software. The following people have contributed to this plugin.

Contributors