• Resolved mleir

    (@mleir)


    I have a field that I would like to work as a date picker in all browser (chrome, firefox, safari, ie). page here

    In my functions.php file I have this code:
    if ( is_page(22603) )
    {
    add_filter( ‘wpcf7_support_html5_fallback’, ‘__return_true’ );
    wp_enqueue_script(‘jquery-ui-datepicker’);
    wp_enqueue_script( ‘autofill-clinical-site’, get_stylesheet_directory_uri() . ‘/js/date-picker-test.js’, array(‘jquery’), ‘1.0.0’, true );
    }

    In an external js file, I have this code:
    jQuery(document).ready(function($) {
    $(‘#datepicker’).datepicker({autoclose: false});
    })

    When I view the source code, I see the class on the field has been appended with hasDatepicker, so the external js file is working (?)

    It seems others have gotten this to work. Can anyone help with what I am doing wrong?

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ov3rfly

    (@ov3rfly)

    Inspecting your page shows: The datepicker html <div class="ui-datepicker ui-widget... is added at the end at </body>. It gets display: block; if you click in datepicker field but you can’t see it because the z-index: 101; there is not high enough.

    If some higher z-index is set, see bad hack below, you can see the datepicker, it works fine, but needs some more styling.

    .ui-datepicker {
        z-index: 100000 !important;
    }

    It’s a CSS jQuery UI issue, not CF7 related.

    Thread Starter mleir

    (@mleir)

    Thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Date Picker Not Showing Calendar’ is closed to new replies.