Using Gravity Forms ‘gform_partialentries_warning_message’ PHP filter

The gform_partialentries_warning_message Gravity Forms PHP filter allows you to modify the warning message displayed to the user when their information is being saved using the Gravity Forms Partial Entries Add-On. The default warning message is “Please note that your information is saved on our server as you enter it.”


A generic example of using the filter:

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);


  • $warning_message (string) – The warning message.

More information

See Gravity Forms Docs: gform_partialentries_warning_message


Change warning message

Modify the warning message for all forms:

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

function change_warning_message($warning_message){
    return "This is a test.";

Add form ID to the warning message

Include the form ID in the warning message:

add_filter("gform_partialentries_warning_message", "include_form_id_in_warning_message", 10, 2);

function include_form_id_in_warning_message($warning_message, $form){
    return "Form ID: " . $form["id"] . " - " . $warning_message;

Change warning message for a specific form

Modify the warning message only for a specific form with ID 2:

add_filter("gform_partialentries_warning_message_2", "change_warning_message_for_form_2", 10, 1);

function change_warning_message_for_form_2($warning_message){
    return "This is a custom warning message for form 2.";

Add extra information to the warning message

Append extra information to the default warning message:

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

function add_extra_info_to_warning_message($warning_message){
    return $warning_message . " Don't worry, your data is safe with us.";

Remove warning message

Remove the warning message completely:

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

function remove_warning_message($warning_message){
    return "";