gform_partialentries_warning_message

Description

The “gform_partialentries_warning_message” filter in the Gravity Forms Partial Entries Add-On allows the warning message indicating the user’s information is being saved to be changed. The default warning message is “Please note that your information is saved on our server as you enter it.”

Usage

The following would apply to all forms:

add_filter( "gform_partialentries_warning_message", "your_function_name", 10, 1 );

To target a specific form, append the form id to the hook name. (format: gform_partialentries_warning_message_FORMID)

add_filter( "gform_partialentries_warning_message_1", "your_function_name", 10, 1 );

Parameters

  • $warning_message string

    The warning message.

Examples

add_filter( "gform_partialentries_warning_message", "change_warning_message", 10, 1 );
function change_warning_message( $warning_message ){
	return "This is a test.";
}

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in GF_Partial_Entries::action_gform_enqueue_scripts() in gravityformspartialentries/class-gf-partial-entries.php.