Skip Pages on Multi-Page Forms

Read the Walkthrough

Code

Filename: gw-skip-pages.php

<?php
/**
 * Gravity Wiz // Gravity Forms // Skip Pages on Multi-Page Forms
 * https://gravitywiz.com/pro-tip-skip-pages-on-multi-page-forms/
 */
add_filter( 'gform_pre_render', 'gform_skip_page' );
function gform_skip_page( $form ) {
	if ( ! rgpost( "is_submit_{$form['id']}" ) && rgget( 'form_page' ) && is_user_logged_in() ) {
		GFFormDisplay::$submission[ $form['id'] ]['page_number'] = rgget( 'form_page' );
	}
	return $form;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.