| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 04:19:18 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_email_fields_notification_admin/
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=BQPEt8ydmVIaOlRnk4AJaYJs104qxdqjy94qCS8U3Fiy1iFqS4pv7ygYPHdB3n0RFUbvUjT1bGOivU1XMvZ2wBtRvtdeTWNtVPlg6uxVgZrzSaq5"}]}
cf-ray: 9b4604d54b78c1a4-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 04:19:19 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=gLSKwSrJgc8Wqmp7UpZQ5zk57wMm9107p4V6%2BhrX7dGkCuINIRAcfyud494eYlMNdhV9CA0d6OOByNORR9u6uxeaxpbBewpEgmqyhUV0dbvH%2FWeo"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4604dbaf54c1a4-BLR
gform_email_fields_notification_admin - Gravity Forms Documentation
gform_email_fields_notification_admin
Description
Use the filter to add/remove fields from the list of email fields that get displayed on the Notification edit page when configuring the “Send To Field”.
Usage
add_filter( 'gform_email_fields_notification_admin', 'add_field_to_email_list', 10, 2 );
Applies to a specific form. In this case, form id 5.
add_filter( 'gform_email_fields_notification_admin_5', 'add_field_to_email_list', 10, 2 );
Parameters
- $field_list array
And array of Field Objects to be displayed in the drop down.
-
$form Form Object
The current form.
Examples
The following example adds a field (field with ID=1) to the list of email fields displayed in the drop down.
add_filter( 'gform_email_fields_notification_admin', 'add_field_to_email_list', 10, 2 );
function add_field_to_email_list( $field_list, $form ) {
//Adds field with ID=1 to the list of email fields
foreach ( $form['fields'] as $field ) {
if ( $field->id == '1' ) {
$field_list[] = $field;
break;
}
}
return $field_list;
}
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFNotification::get_notification_ui_settings() in notification.php.