Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gravity Wiz // Gravity Forms // Display Navigation as "Step {currentPage} of {totalPages}"
<?php
/**
* Gravity Wiz // Gravity Forms // Display Navigation as "Step {currentPage} of {totalPages}"
* http://gravitywiz.com/
*/
add_filter( 'gform_progress_steps', function( $progress_steps, $form, $page ) {
$page = GFFormDisplay::get_current_page( $form['id'] );
$progress_steps = sprintf( 'Step %d of %d', $page, GFFormDisplay::get_max_page_number( $form ) );
return $progress_steps;
}, 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.