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_init_scripts_footer / jQuery

  1. drbroad
    Member

    Hi there,

    First up - great plugin, loving it a lot. Unfortunately i seem to be suffering some issues with the jquery call in the bottom of the form.

    The issue: Best practice is to keep jquery at the bottom of the page, so i found and inserted the bottom of the page using: Gform init scripts footer
    Found here: http://www.gravityhelp.com/documentation/page/Gform_init_scripts_footer

    Unfortunately this seems to do absolutely nothing when inserted into my custom themes functions.php file. Jquery is being included via wordpress - so nothing funky going on there either. Changing to the default twentyTwelve theme has the same error.

    I would link to the page, but as it is in development locally only right now, it is not an option. There doesnt seem to be much supporting documentation around this, nor any bugs.

    //move gravity forms request to the footer
    add_filter("gform_init_scripts_footer", "init_scripts");
    function init_scripts(){
    	return true;
    }

    Is the code i am using. Placing an echo in the function shows that it is firing, but effectively nothing is happening.
    Any help appreciated!

    ps: might want to fix the js error on your support pages:

    Failed to load resource: the server responded with a status of 403 (Forbidden) http://rgsharedweb.s3.amazonaws.com/css/wiki_init.js
    Posted 6 years ago on Thursday May 16, 2013 | Permalink