Title: Set relation between 2 datepickers
Last modified: August 31, 2016

---

# Set relation between 2 datepickers

 *  [FlightX](https://wordpress.org/support/users/flightx/)
 * (@flightx)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/set-relation-between-2-datepickers/)
 * Hi,
 * I’ve installed Caldera Forms on my WordPress site and was looking whether it 
   is possible to set up a relation between 2 datepickers.
 * I want to create a booking page with 2 datepickers: Arrival and Departure. In
   order to prevent the user selecting an invalid interval, I’d like to set:
    The
   min date of the Departure datepicker automatically to the date of the Arrival
   datepicker, + 1 day. This should happen on the close event of the Arrival datepicker.
 * My question: is my required feature feasable? If yes, how?
 * I’ve seen, that data population can be achieved by writing a filter.
 * But I did not find any documentation how to hook that event. Is another plugin
   necessary?
 * Thank you in advance for any hints..
 * Regards,
    Andreas
 * [https://wordpress.org/plugins/caldera-forms/](https://wordpress.org/plugins/caldera-forms/)

Viewing 1 replies (of 1 total)

 *  [dominmax](https://wordpress.org/support/users/dominmax/)
 * (@dominmax)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/set-relation-between-2-datepickers/#post-7344871)
 * Hi, I have exactly the same problem. Any solution for this?
    Thanks Dominik

Viewing 1 replies (of 1 total)

The topic ‘Set relation between 2 datepickers’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/caldera-forms_475846.svg)
 * [Caldera Forms - More Than Contact Forms](https://wordpress.org/plugins/caldera-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caldera-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caldera-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/caldera-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caldera-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caldera-forms/reviews/)

## Tags

 * [datepicker](https://wordpress.org/support/topic-tag/datepicker/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [relation](https://wordpress.org/support/topic-tag/relation/)

 * 1 reply
 * 2 participants
 * Last reply from: [dominmax](https://wordpress.org/support/users/dominmax/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/set-relation-between-2-datepickers/#post-7344871)
 * Status: not resolved