Restrict Dates is a contact form 7 add-on that restricts users from selecting specific dates in your contact form 7 date picker field.
Require contact form 7 – top
Download: https://wordpress.org/plugins/contact-form-7/
Ensure you installed and activated the plugin.
Installation – top
- Upload the add-to-any directory to the /wp-content/plugins/ directory.
Restrict date settings
How to use the plugin?
- 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.
How to set specify days?
Specify a specific date which will be the earliest (Min) or latest dates (Max) selectable in the current Date field.
How to set the current day?
- 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.
How to add an exception?
If you want to add an exception date you can add by clicking the Add Exception button. 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.
Day of 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.
How to link two date pickers?
If I select an end date input, the start date input should be after the end date.
That’s it! We hope this article helped you find out how to use Restrict dates with your contact form 7.