PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Masking causing form to disappear

  1. My form disappears when I turn on masking for zipcode. I have turned off all plugins. I have removed all javascripts from my template, so the only javascripts are included by gravityforms, except my jquery function call in my functions.php. I even removed everything from my functions file except the dereg, reg jquery. If I remove the jquery dereg/reg, the form works properly. I tried it with in_footer set to true and false.

    if( !is_admin()){
    	wp_deregister_script('jquery');
    	wp_register_script('jquery', ("//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"), false, '1.10.1', false);
    	wp_enqueue_script('jquery');
    }

    The js console gives me two errors:
    Cannot read property 'msie' of undefined
    and
    Object [object Object] has no method 'mask'

    I can get the page to form to function properly if I just let jquery load by default, but this is not the solution I would prefer.

    my form: http://gl.maxkukoy.com/blog/pre-approval-application

    Posted 10 years ago on Monday July 1, 2013 | Permalink
  2. Richard Vav
    Administrator

    Until WordPress 3.6 is released which will come bundled with jQuery 1.10 the recommended version to use is 1.8.3 but you could try adding jquery migrate to your function which should allow you to continue using v1.10 until the final 3.6 compatible updates are released.

    wp_enqueue_script('jquery-migrate','//code.jquery.com/jquery-migrate-1.2.1.js',array('jquery'),'1.2.1',false);
    Posted 10 years ago on Monday July 1, 2013 | Permalink
  3. Thank you. going back to v1.8.3 solved problem - easy solution

    Posted 10 years ago on Tuesday July 2, 2013 | Permalink
  4. David Peralty

    Glad you got it sorted. When WordPress core comes out with the new JQuery implementations, we will make sure they work with features like Masking. All my best!

    Posted 10 years ago on Tuesday July 2, 2013 | Permalink

This topic has been resolved and has been closed to new replies.