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.

gform_post_render not working, firing...

  1. This problem is baking my noodle to death, makes no sense.

    I am using gform_post_render on all my projects and have never had an issue on all my previous sites.

    I've gone right back to basics and used your code straight from here...

    http://www.gravityhelp.com/documentation/page/Gform_post_render

    jquery(document).bind('gform_post_render', function(){
    	 document.write( '<style type="text/css">body {display:none !important;}<\/style>');
    });

    But it does not fire, and theres nothing different that should be affecting this. I have tested loads of jquery functions outside the scope of the gform_post_render - and all work fine. But when I put them inside the binded gform_post_render function, it does not work.

    My form is ajax.

    I have included wp_head() and wp_footer()

    I am using jQuery 1.8.0

    I have removed all other js script to see if a plugin was conflicting.

    The other wp plugins I am using are...

    1. Advanced Custom Fields
    2. Duplicate Post
    3. Force Regenerate Thumbnails
    4. Shortcode Exec PHP
    5. WordPress HTTPS

    I have absolute no JS errors on my page.

    Sorry to vague but I can't see any reason why this should not work.

    Can you possibly shed some light on why this may be happening as I've noticed its happening for a few other devs on the support forum, but cant see a fix

    Many Thanks

    Posted 11 years ago on Sunday December 2, 2012 | Permalink
  2. Can you try with jQuery 1.7.2? That version is known to work and is what Gravity Forms relies on WordPress to enqueue. Also, please post a link to your form and let us know what should be happening in your post render function. Thank you.

    Posted 11 years ago on Sunday December 2, 2012 | Permalink
  3. I think I figured it out.

    I was loading jQuery in twice accidentally. Ooops.

    Seems to be A OK now thanks.

    Posted 11 years ago on Thursday December 6, 2012 | Permalink
  4. Thanks for the update Josh.

    Posted 11 years ago on Thursday December 6, 2012 | Permalink

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