CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 06:00:05 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=ynFBRF6v%2B5yPzNFu67rMZpGwtrJqNnGn6fcrpfqqx1f2v7HfL2GSfy0a5xbs7lH1ygB7%2BSHpRdBHRy7oJXWlaQRDXKytHoxYnhmQewWVBtIxmPwn"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98d45ff23d0eaf3d-BLR
gform_progress_steps - Gravity Forms Documentation
gform_progress_steps
Description
The gform_progress_steps filter can be used to modify or replace the default progress steps markup for multi-page forms.
Usage
The following would apply to all forms.
add_filter( 'gform_progress_steps', 'your_function_name', 10, 3 );
To limit the scope of your function to a specific form, append the form id to the end of the hook name. (format: gform_progress_steps_FORMID)
add_filter( 'gform_progress_steps_5', 'your_function_name', 10, 3 );
Parameters
- $progress_steps string
HTML string containing the progress steps markup.
-
$form Form Object
The current form object.
-
$page integer
The current page number.
Examples
1. Add a custom class to the active step.
add_filter( 'gform_progress_steps', 'progress_steps_markup', 10, 3 ); function progress_steps_markup( $progress_steps, $form, $page ) { $active_class = 'gf_step_active'; $progress_steps = str_replace( $active_class, $active_class . ' your_custom_class', $progress_steps ); return $progress_steps; }
Source Code
This filter is located in GFFormDisplay::get_progress_steps() in form_display.php.
Since
This filter was added in Gravity Forms 2.0-beta-3.