| CARVIEW |
Select Language
HTTP/2 301
date: Sun, 28 Dec 2025 01:28:59 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_spinner_target_elem/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: MISS
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=%2FrN8C%2FU2F5IOpU8MqirYL1mZkXTUEKT8w4pN01jwft5Aafqbj6BVB5KpSxaK605clCOGDkHIqASglECNqtsCEk4mNxMc%2FUHWA%2FXRDK6LH3oLJMjW"}]}
cf-ray: 9b4d48b2d8b15ace-BLR
HTTP/2 200
date: Sun, 28 Dec 2025 01:28:59 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=PWXsq2kjCARe9Da4aPlXiR%2FcaxO5nWTXvFMUii7J83EY%2BT%2Bm4kVMMCWcRbMWu%2BJMyhkweL%2FIik6MsPGDWlVxSrvUkPWVviB4%2BSZPb3LtXZBYJjje"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4d48b98c8f5ace-BLR
gform_spinner_target_elem - Gravity Forms Documentation
gform_spinner_target_elem
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.