重力形式 限制日期 是一个重力形式 附加组件,该插件限制用户选择重力形式的 Date Picker 字段。
此插件允许您通过在 重力形式.
附加组件功能
- 此附加组件使管理员能够在 DATE FIELD 中使用两个过滤器,即 Minimum 和 Maximum 日期范围。
- 支持设置和连接多个表单。
- 允许或限制用户选择任何未来或过去的日期。
- Limit by day of the week (按星期几限制) – 限制一周中的可选日期。
- 指定特定日期的例外情况 – 控制日历上任何日期/日期的可用性。
- 可以选择限制日期和日期。(确定一周中的哪些日期可以选择使用)
- 将日期与其他预定义字段链接。(任何选定的日期都可以用作与其他字段日期的比较基准)
- 易于使用 – 轻松管理设置。
- 自动告知用户他们的选择是否有效。
作指南
如何配置附加组件设置
步骤1: 创建表单并选择「日期」 选项以添加日期字段。您可以在高级字段 部分。
步骤2: 选择后,转到日期字段 设置。
步骤3: 导航到“日期字段” 部分,然后单击高深 标签。请参阅下面的屏幕截图,了解您可以在何处找到日期设置.
步骤4: 在这里,管理员可以设置最小日期、最大日期、 和星期 根据他们的要求。
步骤5: 这最小和最大日期设置 将允许您在 Date 字段。
如何设置特定日期
在 Date settings(日期设置)下,您可以通过在下拉菜单中选择上述选项来设置特定日期。选择 “Set Specific Date” 选项后,您可以在菜单旁边的字段中添加您想要的日期(请参阅下面的屏幕截图)。
您可以在 DATE SETTINGS 下设置最早 (Min) 和最晚日期 (Max)。
如何设置当前日期
您可以在 当前数据字段 通过选择“当前日期” 下拉菜单中的选项。
如何设置星期几
此设置允许您根据特定条件限制日期 – 限制一周中可选择的日期(例如,星期一 – 星期日)。
默认情况下,所有日期都有效。取消选中 “All Days” 选项并继续选择特定日期以设置参数。
添加异常
如果要添加例外日期,可以通过单击 Add Exception 按钮进行添加。
例外适用于可选日期和不可选择的日期。如果预期日期是可选的,则现在将不可选择。如果预期日期不可选择,则现在可以选择。
前视图屏幕截图
正如我们在下面的屏幕截图中看到的那样,日期字段显示从 2019 年 7 月 22 日开始的天数。
星期二、星期四、星期六和星期日的日期现在已禁用。
请参阅下面的屏幕截图: 这“10+ 天” condition 在 DATE 字段中执行。这意味着在当前日期之后又添加了 10 天。此外,我们选择的日期现已被禁用。
链接到更多 GRAVITY FORMS 集成
- 使用 Gravity Forms 的 WorldPay
- Gravity Forms 智能上传
- 使用 Google Cloud Printers 的 Gravity Forms
- Gravity Forms 地址 Google 自动完成
- Gravity Forms Google 电子表格插件
- Gravity Forms Sumup 支付网关
- 使用 Gravity Forms 的 Payeezy
- 在 Gravity Forms 中使用 Square 支付
- Gravity Forms Import Entries 插件
- Gravity Forms Preview 插件
更改日志
Version 1.2.2 Date: 09/01/2024 * Minor bug fixes * Update Freemius SDK to the latest version
Version 1.2.0 Date: 07/04/2022 * Code improved
Version 1.1.9 Date : 12/10/2021 * Fixed - Check boxes update issues. * Fixed - Exception repetition issue. * Fixed - Multiple date fields check boxes update issue. * Fixed - Checkboxes update. * Fixed - Dates not restricting. * Fixed - .CSS file enqueue.
Version 1.1.8 Date : 9/12/2020 * Added - "readonly" custom class for disabling the date field for prevent edit date manually.
Version 1.1.7 Date : 17/09/2020 * Update = Tested upto WordPress 5.5.1. * Added - Classes for dynamic minimum date that reflects the date chosen in the first date field.
Version 1.1.6 Date : 13/08/2020 * Fixed removing and updating exception dates issue.
Version 1.1.5 Date : 23/04/2020 * Fixed minor js error.
Version 1.1.4 Date : 07/02/2020 * Added Exception Module.
Version 1.1.3 Date : 19/12/2019 * Fixed an issue where the script to restrict dates was not loading under specific circumstances.
Version 1.1.2 Date : 29/08/2019 * Fixed an issue where restrict dates settings were not showing when no-conflict mode was enabled in Gravity Forms. * Added compatibility with latest Gravity Forms 2.4.12
Version1.1.1.1 Date : 04/07/2019 * Fixed an issue where restrict dates settings were showing for all fields. * Fixed an issue where restrictions were not working for gforms gutten berg blocks.
Version 1.1 Date : 02/07/2019 * Fixed an issue where weekdays and all days can be checked together. * Fixed an issue where the plugin was disturbing gravity forms admin style. * Added compatibility with latest Gravity Forms 2.4.10
Version 1.0 Date : 20/03/2019 * Intial Release.