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.

Can't get gform_page_loaded to work.

  1. I have this code in the header:

    [js]
    	jQuery(document).bind('gform_page_loaded', function(event, form_id, current_page){
    	    alert("Page 3");
    	});

    I've tried giving form_id and current_page values and I tried using just function(). Nothing happens when I click through the pages of the form. What am I missing?

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  2. Please post a link to the page where your form is embedded so we can take a look at how this is implemented. Thank you

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  3. Issue answered in a Priority Support ticket with the following:

    When using "gform_page_loaded", you need to also enable AJAX for the form and it won't fire for the first page. Since you need the video to display on the first and third pages, a better method would be to use the "gform_pre_render" hook (http://www.gravityhelp.com/documentation/page/Gform_pre_render) to output your video code into the page. Take a look at the example here: http://pastie.org/5037698 . I test for a specific form id (1 in the example) and only on pages 1 and 3.

    Posted 11 years ago on Friday October 12, 2012 | Permalink

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