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.

Calendar Date / Month Names?

  1. Hello,
    Is there a way that when someone selects a date from the calendar field that it is displayed with the month name (December for 12, etc)?

    I am making an event calendar and would prefer if the post title would actually say the month name instead of Month Number.

    Thanks

    Posted 12 years ago on Wednesday December 21, 2011 | Permalink
  2. You could handle this with the gform_after_submission hook, and change the month from number to name. Or, in 1.6.2 there is a new filter called gform_entry_created which fires after the entry is created (and you have collected the date, but before the post was created.

    The date picker used by Gravity Forms is the standard jQuery UI date picker, and you should be able to change the month names on display as well. http://jqueryui.com/demos/datepicker/

    Posted 12 years ago on Wednesday December 21, 2011 | Permalink
  3. Thanks... unfortunately for me... im not much of a backend guy so i do not know much about hooks or what youre speaking of... Ill have to look into that to see how to get it going...

    thanks

    Posted 12 years ago on Wednesday December 21, 2011 | Permalink
  4. BTW... I do have version 1.6.2, just checked... but Im not sure how to use that filter gform_entry_created as you mentioned.

    Is there some kind of quick documentation on how to use it similar to the CSSReady Classes?

    Posted 12 years ago on Wednesday December 21, 2011 | Permalink
  5. I have spend the past hour trying to understand this.. and im just as clueless now... I even tried editing the options for that controls the Calendar Date picking using Wordpress' date standardization F j, y :
    http://codex.wordpress.org/Formatting_Date_and_Time

    and it would display my new option but when Id select a date, id get the error message "please format the date properly"

    All i want is to change 12 to December (etc) when creating a post title and post body.. I could do this by abandoning the Gravity Forms Built In date Selector and creating my own... but I really like the look of the calendar.

    If you could explain to me what you said above like I was a 5 year old it would help.. I have no idea how to use filters or hooks or where to place them..

    Thanks again,
    brian

    Posted 12 years ago on Wednesday December 21, 2011 | Permalink
  6. The only documentation for the hooks and filters are strictly related to what the hook does, what it's specifications are and then an example of how to use it. Beyond that, what you do with it is entirely up to your custom code.

    The CSS Ready Classes aren't custom code, they are pre-defined built in features that you can use so that is why the documentation for that is much more detailed and explains exactly how to use them. It's more difficult to explain a customization when the customization could be anything.

    The Date field uses the jQuery UI datepicker and stores the date in the date format that you see. Gravity Forms uses this date format for a variety of things such as sorting entries in the entry list when sorting by that field, etc. Because of that I wouldn't recommend changing the format that Gravity Forms is using for the date field.

    If you need a date field with a date in a custom format then I would highly recommend using another field type. Either use a Single Input field and have the user type in the date, use the Input Mask feature of the Single Input field and create some sort of input mask for them to fill in... or implement it using Drop Down fields where the user selects them individually and you can position the fields side by side on the same row using the Ready Classes.

    Posted 12 years ago on Wednesday December 21, 2011 | Permalink
  7. Thanks Carl... yeah this is kind of what I figured... i couldve done the drop down that you suggested, but I do like the built in pop up of the calendar.. ill probably just leave it as is.

    Posted 12 years ago on Thursday December 22, 2011 | Permalink

This topic has been resolved and has been closed to new replies.