=== Availability Controller – Date Picker & Booking Calendar for Contact Form 7 === Contributors: inputwp Donate link: https://www.inputwp.com Tags: date picker, time picker, booking calendar, availability calendar, contact form 7 Requires at least: 6.0 Tested up to: 7.2 Requires PHP: 7.4 Stable tag: 3.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Date picker and booking calendar for Contact Form 7 and other forms. Visitors pick only the days and times you're open: hours, time slots, holidays. == Description == **Availability Controller** turns the date field in your form into a **date and time picker** that offers only the days and times you're open. Set your business hours, time slots and holidays once. The **booking calendar** in Contact Form 7, WPForms, Ninja Forms, Forminator, Formidable Forms, Fluent Forms or Divi follows them. Keep the form you have. No code. Past dates, closed days and times that are too soon can't be picked. If a visitor types one anyway, the form isn't sent until they fix it. = Made For Appointments, Reservations and Rentals = * **Clinics, salons and consultants** — appointment time slots, with minimum notice and buffers. * **Hotels, B&Bs and vacation rentals** — check-in and check-out dates, with minimum and maximum nights. * **Car, bike and equipment rental** — pickup and return date and time. * **Meeting rooms, classes and services** — any business that takes requests through a form. = Add a Date Picker to Contact Form 7 and Other Form Builders = * **Click to Connect** — Open the page with your form, click **Connect Date Fields** in the admin bar, click the date field and choose what it is. Nothing to copy or paste. * **Manual Setup** — Or add one class name in your form builder. The Integration page shows where, in your builder's own words. Tested with Contact Form 7, WPForms Lite, Ninja Forms, Forminator, Formidable Forms, Fluent Forms and Divi 4 and 5. Any form with a plain text field works. = Three Booking Types = * **Fixed Time Slots** — One date and time, such as 09:00–10:00. For appointments, consultations and classes. * **Day Based** — A check-in date and a check-out date. For hotels, B&Bs and vacation rentals. * **Flexible Range** — A start and an end, each with a date and time. For car and equipment rental and meeting rooms. Six **Quick Setup Presets** fill in every setting in one click: Doctor, Salon, Hotel, Car Rental, Equipment Rental and Meeting Room. = Availability Rules = * **Business Hours** — Open or close each weekday, such as weekends, and set its hours. * **Slot Interval** — Time slots of any length, such as 15, 30 or 60 minutes. * **Availability Window** — Booking opens X days ahead, or within fixed dates. * **Minimum Notice** — For example, 24 hours in advance. * **Buffers** — Preparation time before and after each slot. * **Minimum and Maximum Stay**, or the **Shortest and Longest Duration** of a rental. * **Unavailable Dates** — Holidays, closures and one-off days off. * **Available Dates** — Open a closed day with its own hours. * **Preview** — See a week of your availability, slot by slot. = Date Picker Features = * Date picker, time picker, or date and time in one field. * **Check before sending** — A date or time that breaks your rules stops the form, with a short message under the field. * **Plain date and time fields** — For a date of birth or a preferred call time: any date, past dates only or future dates only, with a year list. * **Accessible Custom picker** with keyboard and screen reader support, or the classic Legacy datepicker. * Light, Dark and Auto themes. Pop-up or always-visible inline calendar. * Calendar in 55 languages, 19 date formats, 12-hour or 24-hour time. * The Integration page lists every connected field and whether it was found on its page. = Availability Controller PRO = Everything above is free. Basic sets the rules but doesn't know what was booked. PRO is a separate plugin that does: * **No double bookings** — Each request is counted, so a full time can't be chosen again. * **Capacity** — 10 bikes or 12 seats. People choose one, or any that's free. * **Calendar sync** — Busy in Google Calendar, Outlook, Airbnb or Booking.com? Those times close on your site. * **A calendar for each resource** — Every room, person or bike gets its own hours and rules. * **WooCommerce** — Sell stays, rentals and places. The price follows the dates chosen. * **Five booking types** — Including scheduled sessions and whole days. * **Zapier** — Send each new request to a spreadsheet, Slack or any other app. * **Your brand** — Your colors, font and words in the calendar. See [Availability Controller PRO](https://www.inputwp.com/pro/) and [pricing](https://www.inputwp.com/pricing/). == Frequently Asked Questions == = How do I add a date picker to Contact Form 7? = Add a text field to your form, for example `[text your-date]`, and put the form on a published page. Open that page, click **Connect Date Fields** in the admin bar, click the field and choose what it is. Or add the class from **Availability → Integration** to the field. The same works in WPForms, Ninja Forms, Forminator, Formidable Forms, Fluent Forms and Divi. = How do I disable weekends, holidays or past dates? = Past dates are never offered. To close weekends, switch off Saturday and Sunday under **Business Hours**. For holidays and closures, add them to **Unavailable Dates**. = Does it record bookings or prevent double bookings? = No. Basic controls which dates and times can be picked. Your form plugin sends and stores the submissions, and a slot stays open after someone picks it. To close a date, add it to Unavailable Dates. To count every reservation and close a slot when it's full, use PRO. = Do I need two fields for check-in and check-out? = Yes, for Day Based and Flexible Range: one text field for the start and one for the end. When you connect the first one, you're asked for the other. Fixed Time Slots uses one date and time field, or a date field and a time field. = Can different forms have different availability rules? = Basic applies one set of rules to every form on the site. For separate hours and rules per room, person or service, use PRO. = Can visitors type a date that breaks my rules? = They can type it, but the form isn't sent. When they press Send, each connected field is checked against your availability in their browser, and a short message under the field says what to change. Developers can turn this off with `add_filter( 'avco_check_before_send', '__return_false' );`. = Can I add a date of birth field? = Yes. Connect the field as a plain **Date** with **Past Dates Only**. Plain fields ignore your business hours and have a year list. = Does it work with page caching? = Yes. Past dates are never offered, whatever the cache's age, and each choice is checked when the form is sent. If your Availability Window or Minimum Notice is short, let the cache refresh at least once a day, and clear it after you change your availability. = The date picker doesn't appear. What should I check? = 1. **Availability → Integration** lists your connected fields. A field marked "Not Found" may have been renamed or deleted, so connect it again on its page. 2. If you used a class name, it must match exactly. 3. Look in the browser console for JavaScript errors from another plugin or theme. Still stuck? Ask in the [support forum](https://wordpress.org/support/plugin/date-time-picker-field/). = I was using v1.9 or v2.x. Will my settings carry over? = Yes. Version 3.1 carries over your v1.9 and v2.x settings the first time your site loads after the update, including on sites that went through 3.0 first. Back up your site before any major update. == Installation == 1. In WordPress, go to **Plugins → Add New**, search for "Availability Controller", then install and activate it. 2. Go to **Availability → Availability**. Choose a booking type or a Quick Setup Preset, then set your business hours and rules. 3. Open the page with your form, click **Connect Date Fields** in the admin bar, click the date field and choose what it is. Or follow the steps for your form builder under **Availability → Integration**. == External services == This plugin does not connect to any external service. It makes no requests from your site and sends no data anywhere. When a site administrator opens a page, the page tells your own site which connected fields it found, for the list on the Integration page; visitors' browsers send nothing. == Screenshots == 1. Availability — Live preview of your time slots, with booking type, business hours and availability window below. 2. Quick Setup Presets — Pre-fill all settings for common booking scenarios in one click. 3. Integration — Choose your form builder, then connect the date field on your page or follow the steps for your builder. == Changelog == = v3.1 - 3 December 2026 = - New: Renamed to Availability Controller. Same slug, settings kept. - New: Connect date fields by clicking them on your page. Works with any form builder. - New: Forms aren't sent while a connected field breaks your availability rules. - New: Plain date and time fields (any, past or future dates) with a year list. - New: Optional Custom picker with keyboard and screen reader support. Legacy stays the default. - New: Upgrade report after updating from 1.9 or 2.x. - New: 12 translations. On new installs the calendar language follows the site language. - New: More Availability Window choices and a "09:00 AM" time format. - New: Upgrade to PRO page and PRO tips you can hide (filter `avco_show_pro_promotion`). - Improved: Integration and Availability pages list connected fields and their status. - Improved: Other plugins' notices are hidden on this plugin's screens (filter `avco_hide_other_notices`). - Changed: The Hotel preset now sets 2 to 30 nights, as described. - Changed: Short month names are unique in 9 calendar languages (affects M j, Y and j M Y output). - Fixed: Settings from 1.9 and 2.x now carry over, including through 3.0. - Fixed: Saving dates and formats, minimum notice, time zones, buffer preview and multisite uninstall. - Developers: Prefix avdp is now avco. Old names keep working until 4.0. - Tested: WordPress 7.2, PHP 8.6, jQuery 4; Contact Form 7, WPForms, Ninja Forms, Forminator, Formidable, Fluent Forms, Divi 4 and 5. = v3.0 - 27 February 2026 = - New: Three booking types, six Quick Setup Presets, Availability Window, date overrides, minimum notice, buffers and stay or duration limits. - Improved: Rebuilt admin with a live calendar preview. Settings carried over from v2.x. Older versions: see changelog.txt in the plugin. == Upgrade Notice == = 3.1 = The plugin is now called Availability Controller. Compatible with WordPress 7.2. Carries over your settings from v1.9 and v2.x and shows an upgrade report of anything that changed. Fixes several saving bugs. Back up your site before updating. == Credits == * [xdsoft.net datetimepicker jQuery plugin](https://xdsoft.net/jqplugins/datetimepicker/)