Note: This filter was removed in Gravity Forms 3.0.0, and it is no longer supported.
Description
Use this filter to modify the element after which the spinner will be inserted. By default, it will be the next button (for multi-page forms) or submit button.
Usage
gform.addFilter( 'gform_spinner_target_elem', function( $targetElem, formId ) {
return $( '#my-custom-elem' );
} );
Parameters
Examples
1. Specify a Custom Target for the Spinner
gform.addFilter( 'gform_spinner_target_elem', function( $targetElem, formId ) {
return $( '#my-custom-elem' );
} );
Placement
Reference the article Adding JavaScript Code to the Frontend of Your Site.
Source Code
This filter is located in gformInitSpinner() in js/gravityforms.js
Since
This filter was added in Gravity Forms 2.0-beta-2.2.