Sale
Gravity Forms Limit Dates
Limit which days are selectable for your Gravity Forms Date Picker fields.
Rs4,838.00 Original price was: Rs4,838.00.Rs410.00Current price is: Rs410.00. for 1 year
Price is in US dollars and excludes tax and handling fees
Verified From
This plugin allows you to limit the selectable dates in your Gravity Forms Datepicker fields. This plugin gives you granular control to manage the selectable date range with an easy-to-use user interface.
After installing and activating Gravity Forms Limit Dates, follow these steps to add a Date field and apply limits to it.
The minimum date setting allows you to specify the earliest possible date that can be selected in the date field. There are several types of values that are accepted.
The Date Modifier settings allows you to modify the selected date by adding or subtracting days, weeks, months or years. The date modifier input is available when a Date field or the Current Date option is selected.
Examples
Current Date
+1 week
Date field
-1 year
Current Date
+3 days
See Minimum Date above. The same settings apply; however, the setting will impact the latest date selectable rather than the earliest date.
The Days of the Week setting allows you to limit which dates are selectable based on the days of the week (a.k.a Monday – Sunday). By default, all days are allowed. Click All Days to select specific days that should be selectable. If Saturday and Sunday are selected, only dates that fall on Saturdays and Sundays will be selectable.
Exceptions allow you to negate the date limitations established in the other settings. An exception works with both selectable dates and unselectable dates. If the excepted date is selectable, it will now be unselectable. If the excepted date is unselectable, it will now be selectable.
For example, if Monday through Friday are selected for the “Days of the Week” setting but you would like to make allow a specific Saturday to be selectable, you can add an “exception” for that specific Saturday. Click the Add Exception button and select the desired date from the date picker.
Instead of the drop-down picker you can display the inline calendar. Check Enable Inline Date Picker on the Perks tab to activate the feature.
As shown on the next screenshot, the inline date picker is initially displayed on the page and doesn’t close when you select dates.
Date fields limited by GP Limit Dates will be validated client-side and server-side. The client-side validation is relevant when users are manually entering dates in the Date field rather than selecting the date via the Date Picker. The client-side validation will notify the user that the entered Date is invalid; however, it will not prevent submission.
The server-side validation will return a validation error if an invalid date is submitted.
When the Current Date option is selected for either the Minimum or Maximum Date settings, the current date will be calculated based on the timezone configured on your WordPress settings page. This prevents users in different timezones from selecting a day that has already passed in your timezone.
Install the following to automatically exclude blocked days from modifiers.
Yep! Use the gpld_after_set_min_date
hook as shown in this example.
When the No Duplicates option is activated, values entered in a field must not already exist in another entry for that field. This is handled during form validation.
To automatically limit duplicate dates using No Duplicates, use this snippet. Any date that has already been submitted will automatically be limited in the datepicker when the form is loaded. Snippet installation instructions can be found in the snippet description.
We have a snippet that will automatically pad the minimum date if the form is submitted on the weekend. For example, if you have the minimum date set to Current Date +1 day and someone places an order on Saturday or Sunday, then they will only be allowed to select Tuesday or later.
Only logged in customers who have purchased this product may leave a review.
No account yet?
Create an Account
Reviews
Clear filtersThere are no reviews yet.