| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 22:15:13 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_email_background_color_data/
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=yawQtMnAv1qrtc7YoSJ49kl4sGvbzMp5%2Bb9zHcjAvQEQ4WejFAh%2FQZZq1geP8QOYBJnGbLJuWf7WK%2BH1mcA%2F6VjB%2BgFqTr1RK%2FWi%2BwR3nJ%2Bbiwod"}]}
cf-ray: 9b4c2ce04bbfa8b0-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 22:15:14 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: EXPIRED
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=W8XoPZiUVNWSsJnYmEDzx%2FGg3jz5hvGwf5Pl8xqk8AJbWP6S0HmY0VIhkSZsEJqqmBnlAkLIvuyJtP8KzZSIZbom4vpZSMp0SyPL82gFlMmX6115"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4c2ce50d16a8b0-BLR
gform_email_background_color_data - Gravity Forms Documentation
gform_email_background_color_data
Description
Allows the background color for the field data in the html email to be changed.
Usage
add_filter( 'gform_email_background_color_data', 'your_function_name', 10, 3 )
Parameters
- $color string
The current background color. The default is #FFFFFF.
-
$field Field Object
The current field.
-
$entry Entry Object
The current entry.
Example
add_filter("gform_email_background_color_data", "set_email_data_color", 10, 3);
function set_email_data_color( $color, $field, $entry ){
return "#CCCCFF";
}
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms version 1.8.6.
Source Code
This filter is located in GFCommon::get_submitted_fields() in common.php.