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.

Yet another Date Picker question

  1. dansod
    Member

    Hi,

    I've done my search on the forum but still can't get this: how to change the span of years displayed i the Date Picker drop down. Most explanations are above me, since I don't code. But I understand that you should be able to change parameter/variable (whatever) called "yearRange" i the JQuery file "ui.datepicker.js".

    However, no matter what I input the drop down list refuses to display it. Only the old years from 1912-2032 are shown. I would like it start 2012 and go to, say, 2020.

    Any input would be appreciated (explain it to me like I'm a two year old.) :-)

    Regards

    Johan

    Posted 12 years ago on Tuesday May 29, 2012 | Permalink
  2. You should implement the JS change via your theme. Did you look at the documentation for yearRange? http://docs.jquery.com/UI/Datepicker#option-yearRange

    Posted 12 years ago on Tuesday May 29, 2012 | Permalink
  3. David Peralty

    As for where the code goes, have a read over this:
    http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F

    Posted 12 years ago on Tuesday May 29, 2012 | Permalink
  4. dansod
    Member

    Hi,
    thnx for your help! So I should go for the themes JQuery instead of Gravity Forms? I'll try that.

    Johan

    Posted 12 years ago on Tuesday May 29, 2012 | Permalink
  5. Well, you'll want to place all of your script references at the theme-level. Not necessarily editing the theme's jQuery file. Pretty much the Javascript/jQuery example on the link David provided is the answer.

    Posted 12 years ago on Tuesday May 29, 2012 | Permalink