Title: Date Filters, Date Picker &amp; Unique IDs for Gravity Forms &#8211; Hero Add-On
Author: Toro Guapo
Published: <strong>5 de novembre de 2022</strong>
Last modified: 2 de desembre de 2025

---

Cerca extensions

![](https://ps.w.org/gf-hero/assets/icon-256x256.png?rev=2812627)

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

 Per [Toro Guapo](https://profiles.wordpress.org/toroguapo/)

[Baixa](https://downloads.wordpress.org/plugin/gf-hero.1.1.2.zip)

 * [Detalls](https://ca.wordpress.org/plugins/gf-hero/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/gf-hero/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/gf-hero/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/gf-hero/#developers)

 [Suport](https://wordpress.org/support/plugin/gf-hero/)

## Descripció

Hero for [Gravity Forms](https://www.gravityforms.com) 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](https://toroguapo.com/gf-hero/features/).

### 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.

## Captures

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

## Instal·lació

Since [Hero](https://toroguapo.com/gf-hero/) is an add-on to Gravity Forms, you 
need to have [Gravity Forms](https://www.gravityforms.com) 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.

## PMF

### 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.

## Ressenyes

![](https://secure.gravatar.com/avatar/c14066967f2c84d92339e6755f0271d838d7c58d9479fbf9c0acb657a55bb33f?
s=60&d=retro&r=g)

### 󠀁[Fantastic Plugin and support](https://wordpress.org/support/topic/fantastic-plugin-and-support-111/)󠁿

 [Marko](https://profiles.wordpress.org/markowp/) 27 de 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.

 [ Llegiu tota la 1 ressenya ](https://wordpress.org/support/plugin/gf-hero/reviews/)

## Col·laboradors i desenvolupadors

«Date Filters, Date Picker & Unique IDs for Gravity Forms – Hero Add-On» és programari
de codi obert. La següent gent ha col·laborat en aquesta extensió.

Col·laboradors

 *   [ Toro Guapo ](https://profiles.wordpress.org/toroguapo/)

[Traduïu «Date Filters, Date Picker & Unique IDs for Gravity Forms – Hero Add-On» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/gf-hero)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/gf-hero/), baixeu-
vos el [repositori SVN](https://plugins.svn.wordpress.org/gf-hero/), o subscriviu-
vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/gf-hero/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/gf-hero/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Versió **1.1.2**
 *  Darrera actualització **fa 4 mesos**
 *  Instal·lacions actives **60+**
 *  Versió del WordPress ** 5.1 o posterior **
 *  Provada fins a **6.9.4**
 *  Versió del PHP ** 7.0 o posterior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/gf-hero/)
 * Etiquetes
 * [Date Picker](https://ca.wordpress.org/plugins/tags/date-picker/)[gravity forms](https://ca.wordpress.org/plugins/tags/gravity-forms/)
   [unique id](https://ca.wordpress.org/plugins/tags/unique-id/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/gf-hero/advanced/)

## Valoracions

 5 sobre 5 estrelles.

 *  [  1 valoració de 5 estrelles     ](https://wordpress.org/support/plugin/gf-hero/reviews/?filter=5)
 *  [  0 valoracions de 4 estrelles     ](https://wordpress.org/support/plugin/gf-hero/reviews/?filter=4)
 *  [  0 valoracions de 3 estrelles     ](https://wordpress.org/support/plugin/gf-hero/reviews/?filter=3)
 *  [  0 valoracions de 2 estrelles     ](https://wordpress.org/support/plugin/gf-hero/reviews/?filter=2)
 *  [  0 valoracions de 1 estrelles     ](https://wordpress.org/support/plugin/gf-hero/reviews/?filter=1)

[Afegeix una ressenya](https://wordpress.org/support/plugin/gf-hero/reviews/#new-post)

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/gf-hero/reviews/)

## Col·laboradors

 *   [ Toro Guapo ](https://profiles.wordpress.org/toroguapo/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/gf-hero/)