PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Restrict dates or time to only x amount in the future

  1. kdawes01
    Member

    Hi,
    How can I make the date calendar only allow clicking on a date, say one day in the future or more?
    Likewise only allow time selection to say, 12 hours in the future or more?

    Thanks!
    Ken

    Posted 12 years ago on Wednesday September 7, 2011 | Permalink
  2. Gravity Forms uses the jQuery UI date picker component. You can customize it with some variables to restrict date range, etc. but you would need to add some jQuery script to your theme, either in the theme header/page template header or in an external .js file that gets called in on your form page. This previous thread may help point you in the right direction.

    http://www.gravityhelp.com/forums/topic/how-to-highlight-current-date-or-future-date-in-jquery-datepicker

    Posted 12 years ago on Thursday September 8, 2011 | Permalink