Description
You can use this filter to modify the error message displayed when an expired or invalid Save and Continue link is used.
Usage
add_filter( 'gform_savecontinue_expired_message', 'your_function_name', 10, 2 );
Parameters
- $message string
Save & Continue expired/invalid link error message. - $form Form Object
The form that is currently being processed.
Examples
Update the error message
add_filter( 'gform_savecontinue_expired_message', 'custom_savecontinue_expired_message', 10, 2 );
function custom_savecontinue_expired_message( $message, $form ) {
// Customize the expired or invalid message for Form ID 5
if ( $form['id'] === 5 ) {
$message = esc_html__( 'The link is expired or invalid .', 'gravityforms' );
}
return $message;
}
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.