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.

Constrain Date Picker to certain month?

  1. dnb
    Member

    Hi-
    I'm hoping to show a date picker that only displays the month of October 2010 for the user to choose a date from. I don't think this is something that GF can do out of the box. Is that correct?

    I see other forum references to using different parameters with the jQuery element (though I don't see just which ones would do what I would need). I'm happy to play with jQuery parameters, but I'm a little fuzzy on how you set the jQuery options from within either GF or the page itself. Do you have an example of this we could look at?

    Thanks!
    -- dNb

    Posted 14 years ago on Wednesday September 8, 2010 | Permalink
  2. Currently there aren't any advanced options for the jQuery date picker in the admin UI. We do plan on adding that in the future.

    You would add the jQuery to the page template, or to a .js file that gets included on the form page. Here's an example from a previous thread.

    http://forum.gravityhelp.com/topic/how-to-highlight-current-date-or-future-date-in-jquery-datepicker#post-5608

    Posted 14 years ago on Wednesday September 8, 2010 | Permalink
  3. I learned a lot from Kevin in this thread regarding the customization available with the date picker.

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

    Posted 14 years ago on Wednesday September 8, 2010 | Permalink
  4. dnb
    Member

    Thanks to both of you. I'll go poke at it. -- dNb

    Posted 14 years ago on Wednesday September 8, 2010 | Permalink