Title: Default Date not working
Last modified: July 28, 2017

---

# Default Date not working

 *  [rottenuncle](https://wordpress.org/support/users/rottenuncle/)
 * (@rottenuncle)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/default-date-not-working/)
 * I’ve been having trouble getting the default date to work with your plugin. I
   set a default date using the field settings, but it had no effect. I then tried
   my preferred method, which is to set the default to the first day of the following
   year for form 14, field 19 by adding the following (from your faq) to my functions.
   php:
 *     ```
       add_filter( 'itsg_datepicker_fields', function ( $datepicker_fields, $form_id ) {
           if ( 14 == $form_id ) {
               $datepicker_fields['19'] = array( '1' => date( 'm/d/Y', strtotime( 'first day of January next year' ) ) );
           }
           return $datepicker_fields;
       }, 10, 2);
       ```
   
 * This also had no effect. Can you help?
 * The form is at:
    [https://yearbox.staging.wpengine.com/customize-calendar/](https://yearbox.staging.wpengine.com/customize-calendar/)
 * (page 3 of form) — you’ll need to create a login to view the form.
 * Thanks,
 * Pete

The topic ‘Default Date not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gravity-forms-list-field-date-picker_e5e0e5.
   svg)
 * [Date Picker in List Fields for Gravity Forms](https://wordpress.org/plugins/gravity-forms-list-field-date-picker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-list-field-date-picker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-list-field-date-picker/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-list-field-date-picker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-list-field-date-picker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-list-field-date-picker/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [rottenuncle](https://wordpress.org/support/users/rottenuncle/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/default-date-not-working/)
 * Status: not resolved