Viewing 2 replies - 16 through 17 (of 17 total)
  • Mike Challis

    (@mikechallis)

    Sorry for the delay in my reply, I own 3 companies and usually work 12
    hour days.

    I looked and it could be a javascript conflict with window.onload for
    the date picker pop up and something else on your page that does
    window.onload

    Follow these instructions to see if you can make it work:

    How to suppress window.onload = function(){} for sites where it can only happen once per page.

    Add the following code to your theme’s functions.php file or to a custom plugin.
    Be sure to set the setting in the function to control which forms you want this on.
    These filters only work with versions 4.xx and up, not the 3.xx versions or lower.

    function my_action_use_window_onload($use_window_onload, $form_id_num) {
    ##################################
     // control which forms you want this on
     $all_forms = true; // set to true for process on all forms,
    //or false to use settings below
     $forms = array('1','2');  // one or more individual forms
     ##################################
     if ( !in_array($form_id_num, $forms) && $all_forms != true)
     return $use_window_onload;
    
      // suppress window.onload = function on date field javascript
      $use_window_onload = false;
    
       return $use_window_onload;
    
    }
    //filter hook to suppress window.onload = function(){}
    //for sites where it can only happen once per page.
    add_filter('si_contact_use_window_onload', 'my_action_use_window_onload', 1, 2);
    Thread Starter stardrive

    (@soghinan)

    Thank you mike.

    Hello Mike,

    Please, I just tried your entire code. The problem is still there: The date picker popup is not displaying. I get the following error message in my forms page:

    Warning: in_array() expects parameter 2 to be array, null given in …….\functions.php on line 64

    Regards,

    Stardrive

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Date Popup(Picker) no more showing’ is closed to new replies.