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...
- Advanced Custom Fields
- Duplicate Post
- Force Regenerate Thumbnails
- Shortcode Exec PHP
- 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