DescriptionUsageParametersExamplesChange to an image buttonPlacementSource Code
Description
Filters the save and continue link, allowing the tag to be customized.
Usage
The following would apply to all forms.
1add_filter( 'gform_savecontinue_link', 'your_function_name', 10, 2 );
The following would apply to form ID 3.
1add_filter( 'gform_savecontinue_link_3', 'your_function_name', 10, 2 );
Parameters
$save_button string
The string containing the save and continue link markup.
$form array
The Form object associated with the link.
Examples
Change to an image button
12345678add_filter( 'gform_savecontinue_link', function ( $save_button, $form ) { $form_id = $form['id']; $button = rgars( $form, 'save/button' ); $button['type'] = 'image'; $button['imageUrl'] = 'the/url/here'; return rgars( $form, 'save/enabled' ) ? GFFormDisplay::get_form_button( $form_id, "gform_save_{$form_id}_link", $button, rgar( $button, 'text' ), 'gform_save_link', rgar( $button, 'text' ), 0, "jQuery("#gform_save_{$form_id}"").val(1);"" ) : $save_button;}