CARVIEW |
Select Language
HTTP/2 301
date: Sun, 12 Oct 2025 08:03:00 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_progress_bar/
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
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: HIT
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=L%2BCnriL4eENrVHoQF9%2FLjuzxQFtF7U8k6rOJZBLK1IRvBXl9vT8LPt3pSBRgijud8TH42Lt5ldYC4qENYNVAtc8i%2FEAPmcFyedNGoRWtGTEDpWi2"}]}
cf-ray: 98d514004c7075e9-BLR
HTTP/2 200
date: Sun, 12 Oct 2025 08:03:00 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
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=6siUQf9x7sp5ooZHlnkTj7pqs4kP8do%2FMmBw0wYIwd%2FCWsWfCXY2hnHPiw2LZW%2FPP2QS1wCy%2F80uOrIGhje9xvPDi8fofUtmXRI34AzR3rTCiKgU"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98d5140539c275e9-BLR
gform_progress_bar - Gravity Forms Documentation
gform_progress_bar
Description
Use this filter to modify or replace the default Gravity Forms progress bar (for multi-page forms).
Usage
Apply to all forms.
add_filter( 'gform_progress_bar', 'my_custom_function', 10, 3 );
Apply to specific forms.
// template
add_filter( 'gform_progress_bar_{formId}', 'my_custom_function', 10, 3 );
// target form ID 1
add_filter( 'gform_progress_bar_1', 'my_custom_function', 10, 3 );
Parameters
- $progress_bar string
Progress bar markup as an HTML string. - $form Form Object
Current Form object. - $confirmation_message string
The confirmation message to be displayed on the confirmation page.
Examples
1. Generate custom progress bar markup
add_filter( 'gform_progress_bar', function( $progress_bar, $form, $confirmation_message ) {
$progress_bar = '<ul>
<li>Page 1</li>
<li>Page 2</li>
<li>Page 3</li>
</ul>';
return $progress_bar;
}, 10, 3 );
2. Replace Step with Level
add_filter( 'gform_progress_bar', function( $progress_bar, $form, $confirmation_message ) {
$progress_bar = str_replace( 'Step', 'Level', $progress_bar );
return $progress_bar;
}, 10, 3 );
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms 2.0.
Source Code
This filter is located in the GFFormDisplay class in form_display.php.