In this tutorial, we’ll see how we can integrate the Date and Time Picker with the Divi Contact Form module to convert input fields into Date Picker, Time Picker, Date Range, and both Date and Time Picker. The integration might be required to provide users with a date calendar and time picker for your business. Like, bookings, appointments, check-in & check-out, and more. Follow the below steps one by one to get your desired result.
Please install the following plugins to do the job successfully.
1. Create a Contact Form in CF7
- Go to Contact → Add new.
- Insert a text field with a unique name rather than generic text-nnn (where “nnn” represents numeric value).
- Save the Form.
2. Create a new Event in Input WP (available only in PRO)
- Go to Input WP → Add New.
- Input field Title. Then, select the Type.
- Adjust any specific settings for the Date and/or Time Picker.
- Once selected, click Publish.
3. Integrate with Contact Form 7
- Go to Input WP → Integration → Form Integration → Add new.
- Then, go to the Introduction section → input Label text (text used only to identify the integration).
3.A. Automatic integration (available only in PRO)
- Introduction: Select the Method → Contact Form 7 → click Next to pull the list of Forms created in Contact Form 7.
- Connect: Select the Contact Form you just created in Contact Form 7 → Select the Event created in Input WP
- Identify: Match the input fields from the Contact Form 7 with Guest, Email and Date picker (Event).
- Click Save.
3.B. Manual integration
- Go to Input WP → Integration
- Copy the CSS Selector → Click Save (You can update the CSS Selector too. Make sure you use the dot “.” before the new name).
- Go to Contact → Identify the Contact Form that you want to integrate with Input WP.
- Paste the CSS Selector in the input field’s Class Attribute field. The input field should look something like [text text-nnn class:CSS-SELECTOR]
- Click Save.
That’s it! You’ve successfully integrated a Contact Form from CF7 with the Date and Time Picker by Input WP.
- Can I uninstall the Date and Time picker plugin after integration?
- If, after creating an automatic field, would I be able to create a manual one also?
- Can I create multiple fields in a single form?
- Can I export the data to external calendars?