| CARVIEW |
Select Language
HTTP/2 301
date: Sun, 28 Dec 2025 07:07:04 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/notifications-object/
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=PEFd15w7oxjPoKC%2FQHSEPqN6xrDjTBh2jY7yTNROdjrcsimk1DGMy0kCJvtu69d5t5Ic67blIHxWyQg8eGIr4oKfuKmf1ZspegZaT97Pujie3FXL"}]}
cf-ray: 9b4f37f43c15c1bf-BLR
HTTP/2 200
date: Sun, 28 Dec 2025 07:07:04 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=Ae7J28Qbd6wfd%2BuTvuPcZGnLsg7dcptUwJanhK0bmcB9t977yh2NbpgXWjRG%2FSJ%2Fw4oxB5m3ELr7MSGxgw8glrOBqWW75JFneNYk5CFuBtvMRpm9"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4f37f8fe16c1bf-BLR
Notifications Object - Gravity Forms Documentation
Notifications Object
Introduction
The Notifications object is an associative array containing the properties for all the email notifications which exist for a form. On a default installation when a new form is created a single notification, named Admin Notification, is created for the form. There is no limit to the number of additional notifications you can create.
See the Configuring Notifications In Gravity Forms article for a tutorial showing how you can configure notifications in the admin.
$form['notifications'] = array(
'558a90489ced3' => array(
'isActive' => true,
'id' => '558a90489ced3',
'name' => 'Admin Notification',
'event' => 'form_submission',
'to' => '{admin_email}',
'toType' => 'email',
'subject' => 'New submission from {form_title}',
'message' => '{all_fields}',
'from' => '{admin_email}',
'disableAutoformat' => false,
'enableAttachments' => false
),
'558a905b98b18' => array(
'isActive' => true,
'id' => '558a905b98b18',
'name' => 'User Notification',
'event' => 'form_submission',
'to' => '2',
'toType' => 'field',
'subject' => 'Thanks for your form submission',
'message' => '{all_fields}',
'from' => '{admin_email}',
'conditionalLogic' => array(
'actionType' => 'show',
'logicType' => 'all',
'rules' => array(
array(
'fieldId' => '3',
'operator' => 'is',
'value' => 'Email me a copy',
),
),
),
'disableAutoformat' => false,
'enableAttachments' => false
),
);
Usage
The notifications are part of the Form Object and so are most commonly accessed like so:
$notifications = rgar( $form, 'notifications' );
Notification Properties
| Prop | Type | Description |
|---|---|---|
| isActive | boolean | Indicates the notification status, active or inactive. Default: true |
| id | string | The notification ID. A 13 character unique ID generated by the PHP uniqid function. |
| name | string | The notification name. |
| service | string | The name of the service to be used when sending this notification. Default: wordpress |
| event | string | The name of the event the notification should be sent on. Default: form_submission |
| to | integer|string | The ID of an email field, an email address or merge tag to be used as the email to address. |
| toType | string | Identifies what to use for the notification to. Possible values: email, field, routing, or hidden |
| bcc | string | The email or merge tags to be used as the email bcc address. |
| subject | string | The email subject line. Merge tags supported. |
| message | string | The email body/content. Merge tags supported. |
| from | string | The email or merge tag to be used as the email from address. |
| fromName | string | The text or merge tag to be used as the email from name. |
| replyTo | string | The email or merge tags to be used as the email reply to address. |
| routing | null|array | An indexed array containing the routing rules. See Routing Rule Properties properties for each rule. |
| conditionalLogic | null|array | An associative array containing the conditional logic rules. See the Conditional Logic Object for more details. |
| disableAutoformat | boolean | Determines if the email message should be formatted so that paragraphs are automatically added for new lines. Default: false (auto-formatting enabled) |
| enableAttachments | boolean | Determines if files uploaded on the form should be attached to the notification email when sent. |
Routing Rule Properties
array(
'fieldId' => '3',
'operator' => 'is',
'value' => 'Email me a copy',
'email' => '{admin_email}',
)
| Prop | Type | Description |
|---|---|---|
| fieldId | integer|string | The target field ID. The field that will have it’s value compared with value to determine if this rule is a match. |
| operator | string | Operator to be used when evaluating this rule. Possible values: is, isnot, >, <, contains, starts_with, or ends_with. |
| value | string | The value to compare with the field specified by fieldId. |
| string | The email or merge tag to be used as the email To address if this rule is a match. |
Notification JSON
This example shows how a basic notification array would look when formatted as JSON for use by the Gravity Forms CLI Add-On.
{
"id": "5acf8e9cf2b40",
"to": "{admin_email}",
"name": "Admin Notification",
"event": "form_submission",
"toType": "email",
"subject": "New submission from {form_title}",
"message": "{all_fields}"
}