| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 08:20:29 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_savecontinue_link/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: MISS
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=UhGLZodc5D10ZzoZSDjLDlq%2FNtDexFU8hGk2qrulAza0lVKBsyQNT0IDTjmF3%2FOUbb2aI9X1IM4zU%2B22vQFwrXtTBAdutz5Ikf4zDsfiD5lvJLyr"}]}
cf-ray: 9b47661e6fd8165e-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 08:20:30 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=g2r43IXC%2F%2F2RiFrDchpy8k4oy4E8vlx6GaoU9m8A7ekztDsmXmhW4G%2BG%2F2qdwnmCsCKsc1m8yPlzXmndHVxWPiz8vwc%2Bf3ASanYJVxUWOjcmzamg"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4766218b68165e-BLR
gform_savecontinue_link - Gravity Forms Documentation
gform_savecontinue_link
Description
Filters the save and continue link, allowing the tag to be customized.
Usage
The following would apply to all forms.
add_filter( 'gform_savecontinue_link', 'your_function_name', 10, 2 );
The following would apply to form ID 3.
add_filter( 'gform_savecontinue_link_3', 'your_function_name', 10, 2 );
Parameters
Examples
Change to an image button
add_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;
}, 10, 2 );
Change the link text
add_filter( 'gform_savecontinue_link', function ( $save_button, $form ) {
GFCommon::log_debug( __METHOD__ . '(): Changing Save and Continue link text...' );
$form_id = $form['id'];
$button = rgars( $form, 'save/button' );
$button['text'] = 'Your Custom Text 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;
}, 10, 2 );
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in form_display.php.