Change Default Form Page

Code

Filename: gpmpn-change-default-form-page.php

<?php
/**
 * Gravity Perks // Multi-Page Navigation // Change Default Form Page
 * https://gravitywiz.com/documentation/gravity-forms-multi-page-navigation/
 */
add_filter( 'gpmpn_default_page', function( $page ) {
	// Update "2" to the page at which the form should start. "2" would start the form on the second page.
	return 2;
} );

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.