Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gravity Wiz // Gravity Forms // Skip Pages on Multi-Page Form
<?php
/**
* Gravity Wiz // Gravity Forms // Skip Pages on Multi-Page Form
* http://gravitywiz.com/2012/05/04/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;
}
@jasimp

This comment has been minimized.

Copy link

jasimp commented May 19, 2020

how to make this possible in a non logged page?

@Yashmodi004

This comment has been minimized.

Copy link

Yashmodi004 commented Jun 24, 2020

Hello sir,i want to redirect to from form page 1 to form page 3 on some checkbox selection that i can get with your code provided,but can i able to submit form after skip page?

@spivurno

This comment has been minimized.

Copy link
Owner Author

spivurno commented Jun 24, 2020

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.