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.

limiting years in calendar date picker

  1. vivalet
    Member

    With the calendar date picker, the year pulldown goes all the way back to 1911. Is there a simple way to limit the range to 2009 to 2013?

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  2. The datepicker uses the jQuery UI Datepicker. It can be customized via jQuery.

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

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  3. vivalet
    Member

    thank you! I edited your datepicker.js file. Is that a hack that will get overwritten on an upgrade?

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  4. Yes, anytime you change files in the Gravity Forms plugin folder those will get overwritten on upgrade.

    You need to check out the jQuery UI datepicker documentation and see how to customize it using jQuery you would add to your theme template.

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  5. vivalet
    Member

    got it. thanks!

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink