Description
Fires on multi-page forms when changing pages (i.e. going to the next or previous page).
Usage
<script type="text/javascript">
jQuery(document).bind('gform_page_loaded', function(event, form_id, current_page){
// code to be trigger when next/previous page is loaded
});
</script>
Parameters
- event
- (object) The Javascript event object.
- form_id
- (integer) The ID of the form in use.
- current_page
- (integer) The page number of the page being loaded.
Examples
This event is very useful when the popular font substitution script Cufon is being applied to a Gravity Form which uses the multi-page functionality and the AJAX form submission functionality. The snippet below provides an example usage of the gform_page_loaded event to refresh the Cufon font substitution for the newly loaded page.
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(document).bind('gform_page_loaded', function(){
Cufon.refresh('h1,h2,h3,h4,h5,h6');
});
})
</script>
Source Code
This filter is located in form_detail.php