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.

Limit Datepicker to specific timeframe

  1. Hi,

    I want to setup a form that allows me to limit when people can select dates, meaning it can only happen between March & April, not any other time. Is there a way to do this?

    Thanks!

    Dana

    Posted 13 years ago on Friday August 5, 2011 | Permalink
  2. Gravity Forms uses the jQuery UI Datepicker which can be customized using jQuery. You can find more information here:

    http://jqueryui.com/demos/datepicker/

    Posted 13 years ago on Friday August 5, 2011 | Permalink
  3. Cool, thanks. Where do I customize it? I don't see it on the date form option.

    Posted 13 years ago on Tuesday August 23, 2011 | Permalink
  4. You would need to add some jQuery 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 13 years ago on Tuesday August 23, 2011 | Permalink

This topic has been resolved and has been closed to new replies.