| CARVIEW |
Select Language
HTTP/2 301
date: Tue, 30 Dec 2025 11:37:16 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_get_field_value/
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: HIT
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=2UxN%2BSAYSlIiUuELMdl9orBedsBfXlw1D60eggB0QZOXv9K0zZnrzBvQlmOCtOFMQXgINnHt%2BdhuuDvJ1bCGP7nWRh%2F75x3tnDKUMTQvZ1%2F6H9b1"}]}
cf-ray: 9b613e838e590bc9-BLR
HTTP/2 200
date: Tue, 30 Dec 2025 11:37:17 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=vJvrfHJZbrVgE8Ar9hMrhXxcZ1LJ8KRuRm1sq%2FW520R%2FvUAsZG%2FI97sN9PMgvT%2FxN5AXj%2FwgGEHbskmcQ72y5dGztb68aNRubm5qptIZHveHfIaF"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b613e885f9a0bc9-BLR
gform_get_field_value - Gravity Forms Documentation
gform_get_field_value
Description
Filters the lead value.
Usage
add_filter( 'gform_get_field_value', 'your_function_name', 10, 3 );
Parameters
- $value string
The value of the field. - $entry Entry Object
The current entry. - $field Field Object
The current field.
Example
add_filter( 'gform_get_field_value', 'change_field_value', 10, 3 );
function change_field_value( $value, $entry, $field ){
if ( $field['id'] == 1 ){
$value = 'Testing';
}
return $value;
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Since
This filter was added in Gravity Forms version 1.5.
Source Code
This filter is located in:
- GF_Entry_List_Table::column_default() in entry_list.php
- GFFormsModel::get_lead_field_value() in forms_model.php