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_page_loaded javascript hook

  1. Hey guys,

    Im trying to use the "gform_page_loaded" JavaScript hook to bind JavaScript functions to a form. Everything works as expected except when the form submit process takes place. If the form returns false because of validation errors, the functions that rely on a form submit no longer work. Even simple tasks such as console logging or window alerts will not work after a failed form submission takes place.

    Any guesses as to why this is happening, or if there is a possible work around?

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink
  2. I am running some tests locally and the gform_page_loaded hook is firing when validation fails, even on the last page. I would try isolating the form on a WP install without any custom code and see if you can replicate your issue there. If so, I will be glad to take a look and see what is going on.

    Posted 13 years ago on Tuesday March 15, 2011 | Permalink