• Resolved leyo645

    (@leyo645)


    Hi,

    The datepicker is showing when I press on the input field, but no values are passed to the input field it when I press on a date.

    Here’s my code:
    <p style=”float: left; margin-top: -15px; margin-left: 20px;”>
    <label>Datum</label>
    [date date-726 id:calendar]
    [date date-134 class:dp]
    [date date-499]
    </p>

    Here’s what I’ve put in the datepicker settings:
    #calendar, .bday, input [name=”datepicker”], .datepicker

    I’m posting it inside a contact form using Contact Form 7. I’m using the latest version if the plugin and Contact form 7.

    Here’s the URL:
    https://xn--ungdomsstd-y5a.se/checking-page/
    (you can press on the green button to toggle the modal where the date-picker is, it will appear when you press on the first field under “Datum”)

    Here’s a screenshot:
    https://prnt.sc/kj2om9

    Another strange thing is that the two date-fields below the one mentioned above pass values correctly, but doesn’t return the datepicker, only the standard contact forms 7 one.

    Any help greatly appreciated!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter leyo645

    (@leyo645)

    Oh, and when I insert the picker inside a page like this <input type=”text” class=”datepicker” /> it works as intended, so maybe some conflict between Contact Form 7 datepicker and this one?

    I can also insert <input type=”text” class=”datepicker” /> into the contact form 7 and it gives the date to the input when clicked, but it doesn’t pass values to the email then.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    In fact, the conflict isn’t with plugin contact form 7 but the browsers and WordPress default behavior with date fields. Please observe, if input type is text, so datepicker plugin works fine but if input type is date like this

    [date date-726 id:calendar]
    [date date-134 class:dp]
    [date date-499]

    so other scripts are overriding the datepicker functionality. I would suggest this.

    [text date-726 id:calendar]
    [text date-134 class:dp]
    [text date-499]

    Thanks,
    Fahad

    Thread Starter leyo645

    (@leyo645)

    Thanks friend, working good now

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Datepicker not passing values’ is closed to new replies.