bookmark_bordergform_pre_form_editor_save

Description

This filter fires on the Form Editor page when a form is saved.

Usage

<script type="text/javascript">
    gform.addFilter('gform_pre_form_editor_save', 'save_form');
    function save_form(form){
        //change the form title in the form object
        form.title = "Testing...";
        //return the form object from the js hook
        return form;
    }
</script>

Parameters

  • form array

    The current form object.

Examples

This example uses the gform_admin_pre_render filter to load the hook and changed the form title to “Testing…”.

add_action( ‘gform_admin_pre_render’, ‘pre_render_function’ );
function pre_render_function( $form ) {
?>

Source Code

This filter is located in form_editor.js