[WordPress] 外掛分享: Date Filters, Date Picker & Unique IDs for Gravity Forms – Hero Add-On

首頁外掛目錄 › Date Filters, Date Picker & Unique IDs for Gravity Forms – Hero Add-On
60+
安裝啟用
★★★★★
5/5 分(1 則評價)
107 天前
最後更新
問題解決
WordPress 5.1+ PHP 7.0+ v1.1.2 上架:2022-11-04

內容簡介

Hero 是一個可以擴充 Gravity Forms 並提供必要功能及額外功能的外掛程式。

功能

日期篩選。可以使用日期篩選來啟用或禁用日曆中的日期,如過去的日期、週末或任何其他特定日期。
時區。當使用日期選擇器時,如果您希望吸引全球來訪者,您需要注意到不同的時區。Hero 在日期欄位上添加了時區支持。
日期選擇器動畫。Hero 讓您控制當打開日期選擇器時要播放哪種動畫。
日期選擇器高亮顯示。您可以使用 Hero 在日曆上突顯顯示當天的日期。
唯讀日期輸入。使用 Hero,您可以禁止手動編輯日期輸入,並只允許使用日期選擇器來填寫日期輸入。
唯一 ID。當您需要創建優惠券代碼、參考編號或任何需要隨機且獨一無二的內容時,可以使用唯一 ID。
隨機 ID。當您只需要生成隨機字符時,可以使用隨機 ID。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Date Filters, Date Picker & Unique IDs for Gravity Forms – Hero Add-On」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon