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.

Conditional date logic

  1. darkchoccafe
    Member

    Can I pay someone on your staff to create conditional date logic where the date picker only highlights Monday - Wednesday on any given week? I sell cakes and only ship Monday - Wednesday nationwide. Would like it where it only showed those dates to choose from on the calendar to prevent confusion by customers. Thanks!

    A page to go to is: http://www.thedarkchocolatebakery.com/some-like-it-hot-chili-truffle-mini-cake

    Posted 9 years ago on Thursday October 21, 2010 | Permalink
  2. This wouldn't be a conditional logic feature or even a form customization really. The datepicker is part of the jQuery UI Library and can be configured to do what you want simply by adding some jQuery to your page template.

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

    Here's a couple of sites for reference.

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

    http://articles.tutorboy.com/jquery/jquery-ui-datepicker-disable-specified-dates.html

    We don't do any paid customizations, but are happy to recommend a few qualified developers that could help you out.

    Ounce of Talent
    http://www.ounceoftalent.com

    WebDevStudios
    http://www.webdevstudios.com

    Alex Brombal, Code8
    alex.brombal@gmail.com

    Posted 9 years ago on Thursday October 21, 2010 | Permalink
  3. darkchoccafe
    Member

    Thanks! Love your forms!

    Posted 9 years ago on Thursday October 21, 2010 | Permalink
  4. darkchoccafe
    Member

    What is the name of the gravity forms page template that I would edit? I'm in WP.

    Posted 9 years ago on Thursday October 21, 2010 | Permalink
  5. darkchoccafe
    Member

    Let me rephrase...I'm in WP in the plugins editor section. My choices from within for example are gravityforms/js/datepicker.js and gravityforms/js/jquery-ui/ui.datepicker.js . Would either be the page template that I add the js code to?

    Posted 9 years ago on Thursday October 21, 2010 | Permalink
  6. Gravity Forms doesn't have any page templates. It's embedded in the WordPress pages. You would add the code to the page.php or preferably the header.php file in your active theme folder. There's nothing you'd need to do in the plugins folder.

    Posted 9 years ago on Thursday October 21, 2010 | Permalink