Skip to content

Commit

Permalink
Create gw-add-custom-footer-button.php
Browse files Browse the repository at this point in the history
  • Loading branch information
spivurno authored Mar 17, 2022
1 parent d907cc1 commit cc2f8bc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions experimental/gw-add-custom-footer-button.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
/**
* Gravity Wiz // Gravity Forms // Add Custom Footer Button after Save & Continue
* https://gravitywiz.com/
*/
// 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 );

0 comments on commit cc2f8bc

Please sign in to comment.