gpasc_js_init

  1. Description
  2. Usage
  3. Parameters
  4. Since
  5. Example
    1. Disable Advanced Save and Continue From Javascript

Description

Perform an action or side effect after a form’s GPAdvancedSaveAndContinue instance has been initialized.

Usage

gform.addFilter( 'gpasc_js_init', 'my_custom_function' );

Parameters

  • formId number

    The ID of the form.

  • gpAdvancedSaveAndContinue object

    The instance of GPAdvancedSaveAndContinue that was initialized.

Since

This filter is available since GP Advanced Save and Continue 1.0-beta-1.3.

Example

Disable Advanced Save and Continue From Javascript

window.gform.addAction( 'gpasc_js_init', function ( formId, gpAdvancedSaveAndContinue ) {
    if ( formId != formId ) {
        return;
    }

    gpAdvancedSaveAndContinue.disable();
});