Description
This filter fires on the Form Editor page when a form is saved.
Usage
gform.addFilter( 'gform_pre_form_editor_save', function( form ) {
// do stuff
return form;
} );
Parameters
form
Form Object
The form being saved.
Examples
This example changes the form title to “Testing…”.
gform.addFilter( 'gform_pre_form_editor_save', function( form ) {
form.title = 'Testing...';
return form;
} );
Placement
Reference the article Adding JavaScript Code to the Admin Side of Your Site.
Source Code
This filter is located in form_editor.js