Title: Repeatable fields
Last modified: May 14, 2020

---

# Repeatable fields

 *  Resolved [ljacob1](https://wordpress.org/support/users/ljacob1/)
 * (@ljacob1)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/repeatable-fields-8/)
 * Hi, I’m really grateful for this datepicker as it has saved me many problems 
   with cross browser display! I would like to use with a CF7 form that uses repeatable
   field groups with wpcf7-date fields .
 * It works fine with the field group initially loaded but on adding a clone of 
   the group, the datepicker is not carried across. I suspect the event listener
   needs to re-ran.
 * Any help would be appreciated
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frepeatable-fields-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Carlos Moreira](https://wordpress.org/support/users/carlosmoreirapt/)
 * (@carlosmoreirapt)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/repeatable-fields-8/#post-12835199)
 * Hi [@ljacob1](https://wordpress.org/support/users/ljacob1/)
    Thank you for the
   positive words on the plugin.
 * I couldn’t see the page because it’s password protected, but I think what you’re
   saying is correct, the date picker script would need to run again when the field
   is duplicated. Unfortunately this is outside of what the plugin alone is able
   to do, you would need some custom code to trigger that.
 * If it helps, you would simply need to run
    `dtp_init();` after the field is cloned.
 * Hope it helps and sorry for the limitations.
    Greetings, Carlos
 *  Thread Starter [ljacob1](https://wordpress.org/support/users/ljacob1/)
 * (@ljacob1)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/repeatable-fields-8/#post-12840436)
 * Thanks for your help on that, I think I can get that working
 * Sorry, forgot about the p/w whilst its in development!
 *  [Troglos](https://wordpress.org/support/users/troglos/)
 * (@troglos)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/repeatable-fields-8/#post-12900705)
 * Hi,
 * I really like your plugin.
    I am having the same issue with the repeater fields.
   How can I implement dtp_init() in functions.php after the field is cloned as 
   you suggested?
 * The plugin I am using is [https://wordpress.org/plugins/cf7-repeatable-fields/](https://wordpress.org/plugins/cf7-repeatable-fields/)
 * I really hope you can help.
 * Thank you
 *  Thread Starter [ljacob1](https://wordpress.org/support/users/ljacob1/)
 * (@ljacob1)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/repeatable-fields-8/#post-12901188)
 * Hi [@troglos](https://wordpress.org/support/users/troglos/)
 * Due to the setup I have to work with, I didn’t go through the functions.php
 * I wrote a JavaScript function on the page to iterate over the Dom elements in
   the class I wanted to add it to. The elements then call dtp_init() on click after
   a short delay
    -  This reply was modified 5 years, 10 months ago by [ljacob1](https://wordpress.org/support/users/ljacob1/).
 *  [Troglos](https://wordpress.org/support/users/troglos/)
 * (@troglos)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/repeatable-fields-8/#post-12901316)
 * Hi ljacob1,
 * Thank you for the reply.
    Would it be possible, when and if you have a chance,
   to share the js function you used? I am still looking around for a solution, 
   with no luck.
 * That would be really appreciated.
 *  Thread Starter [ljacob1](https://wordpress.org/support/users/ljacob1/)
 * (@ljacob1)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/repeatable-fields-8/#post-12901622)
 * Hi [@troglos](https://wordpress.org/support/users/troglos/)
 * I’ve put the JS on GitHub [https://github.com/lpjacob/wpcf7-datepicker](https://github.com/lpjacob/wpcf7-datepicker)
 * Please note – it works for my purpose but can’t promise it will in your circumstances
   or will not hurt the page load time
 *  [Troglos](https://wordpress.org/support/users/troglos/)
 * (@troglos)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/repeatable-fields-8/#post-12903434)
 * Thank you so much ljacob1,
 * I just made a little correction with the final brackets and it works!
 * Very appreciated.
 * Thanks
 *  Thread Starter [ljacob1](https://wordpress.org/support/users/ljacob1/)
 * (@ljacob1)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/repeatable-fields-8/#post-12903676)
 * [@troglos](https://wordpress.org/support/users/troglos/)
 * Good spot! Have corrected on Github
 *  [Troglos](https://wordpress.org/support/users/troglos/)
 * (@troglos)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/repeatable-fields-8/#post-12903735)
 * Perfect!
 * Thanks again

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Repeatable fields’ is closed to new replies.

 * ![](https://ps.w.org/date-time-picker-field/assets/icon.svg?rev=2964043)
 * [Availability Datepicker – Booking Calendar for Contact Form 7 – Input WP](https://wordpress.org/plugins/date-time-picker-field/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/date-time-picker-field/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/date-time-picker-field/)
 * [Active Topics](https://wordpress.org/support/plugin/date-time-picker-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/date-time-picker-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/date-time-picker-field/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Troglos](https://wordpress.org/support/users/troglos/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/repeatable-fields-8/#post-12903735)
 * Status: resolved