| CARVIEW |
Select Language
HTTP/2 301
date: Sun, 28 Dec 2025 02:49:28 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_entry_post_save/
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: EXPIRED
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=Z8Hbt%2BtuXCLA7rf5qksgw5Sqk6T1lNlXFKRciuFGCo5F4PCidIPrclLBWsmznBrQpDwuD%2BQKsvnrAEmZGL08oZ2R5S%2BqHPdPWb%2BOPu%2Ba8N9AaB06"}]}
cf-ray: 9b4dbe996ec2741b-BLR
HTTP/2 200
date: Sun, 28 Dec 2025 02:49:28 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=FNQ6Zb4q9CSGDK2uYZo5xijI5ia5hR%2Bg22sVgIgFbkwRNLniOQxyYheZ%2Fb%2B6JoMpd8CnLDa1dbt%2BDYvKmq6j%2BuGu7sbP7GEz%2FptLXaRq%2FaV3DAA5"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4dbe9fdbf5741b-BLR
gform_entry_post_save - Gravity Forms Documentation
gform_entry_post_save
Description
Use this filter to perform actions right after an entry has been saved. This fires before notifications are sent and before the confirmation is processed.
Usage
add_filter( 'gform_entry_post_save', 'post_save', 10, 2 );
Parameters
- $entry Entry Object
The current entry.
-
$form Form Object
The current form.
Examples
1. Temporarily change field value
This example appends the text “testing” to the value of field 1 in the lead. This new value will be available for use in notifications and confirmations, but the updated text is NOT saved with the entry.
add_filter( 'gform_entry_post_save', 'post_save', 10, 2 );
function post_save( $entry, $form ) {
$entry['1'] = rgar( $entry, '1' ) . ' testing';
return $entry;
}
2. Change Entry Property
This example shows how you can change an entry property such as the ‘source_url’ and save the change.
add_filter( 'gform_entry_post_save', function ( $entry ) {
$entry['source_url'] = 'the new url here';
GFAPI::update_entry_property( $entry['id'], 'source_url', $entry['source_url'] );
return $entry;
} );
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
apply_filters( 'gform_entry_post_save', $lead, $form )
This filter is located in GFFormDisplay::handle_submission() in form_display.php.