Gravity Forms Restrict Dates Add-on
Gravity Forms Restrict dates is a Gravity Forms add-on that allows users to restrict the selectable dates in your form date picker field.
This add-on will help you to introduce a date field in your Gravity Form, then manages the date ranges and days to be displayed to the user.
- Using this add-on Admin will have an option to use two fields in Date field, namely; Minimum and Maximum date ranges. Admin can set Date based on Current date or set specific Dates for their requirments and preferences.
- Using the add-on Admin can define allowed future or past dates.
- Admin can restrict dates by days of the week (Determine which days of the weeks will be selectable).
- Link Date to another defined past field (Date selected in one date field will be filled as the Minimum or Maximum) date in another field.
How to use addon
- Create form and add date field
- Open date field settings
- Navigate to section Date settings and click on Advanced tab.
- Admin can set the Minimum Date, Maximum Date, Days of the Week.
- The Minimum and Maximum Dates setting allows you to specify the beginning and ending dates that can be selected in the date field.
SET SPECIFIC DATE
Specify a specific date which will be the earliest (Min) or latest dates (Max) selectable in the Current Date field.
- The current date will be the earliest (Min) date and latest (Max) selectable in the current Date field. This is a dynamic value and will automatically adjust to the current date with each new day.
- The Date period settings.
- This setting allows you to modify the selected date by adding or subtracting days, weeks, months or years. It’s available when the Current Date option is selected.
DAYS OF THE WEEK
- This setting allows you to restrict which dates are selectable based on the days of the week (e.g. Monday – Sunday).
- By default, all days are allowed. Uncheck all days option to select specific days.
Front View Screenshots
As we can see in below given screenshot that the date field has only displayed days form 07/22/2019, and the days Tuesday, Thursday, Saturday and Sunday have been disabled to select from.
The Date field has executed the condition of +10 days and added 10 more days after the current date and also disabled the selected days.
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 the no-conflict mode was enabled in Gravity Forms. * Added compatibility with latest Gravity Forms 2.4.12
Version126.96.36.199 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: 02/04/2019 Initial Release