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.

Can I change Date field Display to Tomorrow?

  1. {date_dmy}

    I want to make default value date field to tomorrow.

    How can i do that?

    Thank you

    Posted 7 years ago on Thursday July 19, 2012 | Permalink
  2. Can you post a link to your form so I can see how you're using the date? Do you just want the date picker to default to tomorrow's date when it opens? Or are you using the date drop down? Or are you looking to do something else? Please post more details. Thank you.

    Posted 7 years ago on Saturday July 21, 2012 | Permalink
  3. http://coolasiatravel.com/about-bangkok/

    Now i use the date drop down because date picker is not work with my site.

    Thank you.

    Posted 7 years ago on Wednesday July 25, 2012 | Permalink
  4. The date picker is probably not working due to a JavaScript or jQuery error. But that's a separate issue. However, it will be easier to start with the default date of tomorrow if you do use the date picker, rather than the drop downs. Can you put the date picker back on your form and post a link to the page when that's done, so we can see what the conflict is that is preventing it from working?

    Thank you.

    Posted 7 years ago on Wednesday July 25, 2012 | Permalink
  5. I have a similar question, I have a form that requests for service. Is there I a way to disable "todays" date from being selected. So only the next day is available to request service.

    http://www.baystatesepticma.com/dev/schedule-your-septic-pumping/

    Posted 6 years ago on Wednesday September 5, 2012 | Permalink
  6. cortiz001
    Member

    I'm in the same boat. Is it possible to have a default date? For example if I want it 15 days, or 30 days ahead by default?

    Posted 6 years ago on Wednesday September 5, 2012 | Permalink
  7. @supermedia, you can restrict the date range to allow only future dates. Please see the jQuery UI datepicker documentation: http://jqueryui.com/demos/datepicker/#min-max

    @cortiz001, same instructions, but please check this explanation: http://stackoverflow.com/a/3829064

    Posted 6 years ago on Thursday September 6, 2012 | Permalink
  8. cortiz001
    Member

    @Chris Hajer, Thank you for your reply! Is there a way to do this from the Form Editor in Gravity Forms? After viewing the link provided, I have to add some custom javascript programming to achieve this. Is that correct?

    Posted 6 years ago on Thursday September 6, 2012 | Permalink
  9. There is no way to do this from the form editor. Yes, JavaScript is required. It's not JavaScript programming really, just setting parameters.

    There are examples in the forums here and online as well. You can set the default date to a future date, and can disable dates in the past, dates before a certain date, etc.

    Posted 6 years ago on Thursday September 6, 2012 | Permalink