Add Custom Footer Button after Save & Continue

Experimental Snippet 🧪

Code

Filename: gw-add-custom-footer-button.php

<?php
/**
 * Gravity Wiz // Gravity Forms // Add Custom Footer Button after Save & Continue
 * https://gravitywiz.com/
 *
 * Experimental Snippet 🧪
 */
// Update "123" to your form ID.
add_filter( 'gform_savecontinue_link_123', function( $markup, $form ) {
	return $markup . GFFormDisplay::get_form_button( $form['id'], "my_custom_button_{$form['id']}", array( 'type' => 'button' ), 'My Custom Button', 'gform_previous_button', 'My Custom Button', false );
}, 10, 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.