Support » Plugin: Date Time Picker Field » Initialize Datepicker with javascript

  • Is there a function I can use to initialize the date picker after duplicating it?
    I’m using a repeater to duplicate any field in contact form 7. Is there a function I should call after duplication the field in order for it to appear properly?

    Something like: datePicker.init()?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Carlos Moreira

    (@carlosmoreirapt)

    Hi, yes, you can use

    dtp_init();

    Jules Colle

    (@jules-colle)

    Thanks, but this will reset all the fields that were already filled in as well.
    Can I call the init function on a single date field?

    Something like: $('#my-date').dtp_init(); ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.