gform_page_loaded

gform_page_loaded

DescriptionUsageParametersExamplesCufon ScriptGoogle AnalyticsPlacementSource Code

Description
Fires on multi-page forms with AJAX submission enabled when changing pages (i.e. going to the next or previous page).
Usage

Parameters

event 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
Cufon Script
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.

Google Analytics
This example shows how to add Google Analytics tracking to every page in a multi-page form:

Placement
This code can be placed in an HTML field on your form or you may use the gform_pre_render hook to echo the script block to the page.
Source Code
This filter is located in form_display.php

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注