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.

Date picker not working (trying to reorder days)

  1. wmboy
    Member

    Hi there,

    I'm trying to change the date so the popup shows Mon-Sun (rather than Sun-Sat). I added a simple jQuery function (see here - http://pastebin.com/D02PMnmN ) to my header.php file;

    This works, in that it changes the ordering of days on the calendar, however it breaks all the other settings for the calendar. E.g. the date format should be dd/mm/yyyy, but it defaults back to mm/dd/yyyy which causes errors when the form is being submitted (as well as confusing users). Also for some reason the calendar icon beside the textbox disappears.

    Is there a way to change the ordering of days, without affecting other settings?

    The page in question is here - http://flyadriatic.co.nz/quote/ (u: admin, p: password12). The date fields are on page 1 of the form.

    Any assistance is much appreciated!

    Posted 11 years ago on Monday September 24, 2012 | Permalink
  2. You will probably have to declare all those parameters again in your custom function which changes the first day of the week. It looks like whatever the old parameters were are lost when you add one to your header.php like this http://pastebin.com/CiEQqPA7

    Coding the path to the calendar.png image is a bad idea and you should use a WordPress function to get the plugin folder and URL. It will work like this, but it's not really the correct way of doing it, and will break if you ever move the site.

    Posted 11 years ago on Monday September 24, 2012 | Permalink
  3. wmboy
    Member

    Hi Chris,

    Thanks a lot for your reply - I really appreciate the support.

    Just FYI (and in case other people find this thread), for some reason I had to change the following line to use 'yy' instead of 'yyyy', otherwise it dupliated the year (i.e. after selecting a date it'd show 24/12/20122012).

    Line was:
    dateFormat: "dd/mm/yyyy",

    Changed to:
    dateFormat: "dd/mm/yy",

    Also, for those less technical, the calendar image remains hidden with CSS produced by Gravity Forms, so you'll have to override it with your own CSS.

    Posted 11 years ago on Saturday September 29, 2012 | Permalink
  4. Sounds like you have it working. Thanks for the update.

    Posted 11 years ago on Saturday September 29, 2012 | Permalink