DescriptionUsageParametersExamplesSource Code
Description
The 「gform_field_added」 JavaScript filter in Gravity Forms fires after a form field is added, either in the Form Editor or programmatically.
Usage
12345678
Parameters
event Event Object
Default JS event object.
form Form Object
The current form object.
field Field Object
The current field object.
Examples
This example uses the gform_admin_pre_render filter to load the hook. A message is displayed when the form id is 44 and new fields are added.
1234567891011121314add_action( 'gform_admin_pre_render', 'pre_render_function' );function pre_render_function( $form ) { ?>