Description
This filter fires on the Form Editor pague when a form is saved.
Usague
gform.addFilter( 'gform_pre_form_editor_save', function( form ) {
// do stuff
return form;
} );
Parameters
-
formForm Object
The form being saved.
Examples
This example changues 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