# Bulk Add Conditionals to Notifications

**URL:** <https://community.gravityforms.com/t/bulk-add-conditionals-to-notifications/5882>\
**Category:** Get Help\
**Tags:** gform\_notification, conditional-logic\
**Created:** [August 25, 2020, 1:57pm UTC](https://community.gravityforms.com/t/bulk-add-conditionals-to-notifications/5882 "2020-08-25T13:57:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nextgenconcepts](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/nextgenconcepts/32/1949_2.png) [@nextgenconcepts](https://community.gravityforms.com/u/nextgenconcepts)\
**Post date:** [August 25, 2020, 1:57pm UTC](https://community.gravityforms.com/t/bulk-add-conditionals-to-notifications/5882/1 "2020-08-25T13:57:19Z")

</div>

Hello,

I am trying to setup a couple of notifications based on the zip code entered and I am wondering if there is a way to add them in bulk? I know I can add them one by one but there are about 1500 zip codes that I need to add. Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [August 25, 2020, 5:34pm UTC](https://community.gravityforms.com/t/bulk-add-conditionals-to-notifications/5882/2 "2020-08-25T17:34:24Z")

</div>

There is no bulk way to add conditions for notifications. If you have just a few notifications, I recommend using the gform\_notification filter to create some rules on which notification to use based in the ZIP code which is entered. The codes would not be added to the form in conditional logic settings. You could keep them in the code, or retrieve them from a file or the database to compare in your code.

> **[gform\_notification - Gravity Forms Documentation](https://docs.gravityforms.com/gform_notification/)**
>
> Modify a notification object before it is converted into an email and sent.

You will need to create some PHP to accomplish it in this way.

---

<div class="post-metadata">

**Author:** ![nextgenconcepts](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/nextgenconcepts/32/1949_2.png) [@nextgenconcepts](https://community.gravityforms.com/u/nextgenconcepts)\
**Post date:** [August 25, 2020, 5:49pm UTC](https://community.gravityforms.com/t/bulk-add-conditionals-to-notifications/5882/3 "2020-08-25T17:49:32Z")

</div>

Thanks Chris! I did look over this before and I think it might work. Just not sure where I am supposed to put the code?

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [August 25, 2020, 5:50pm UTC](https://community.gravityforms.com/t/bulk-add-conditionals-to-notifications/5882/4 "2020-08-25T17:50:38Z")

</div>

Once you create the code to go with the gform\_notification filter, you will add that to your theme functions.php file or a custom functionality plugin if you are using one.

> **[Where Do I Put This Code? - Gravity Forms Documentation](https://docs.gravityforms.com/where-do-i-put-this-code/#php)**
>
> In this article, we will show you where you should typically place code that is within our documentation.

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 4, 2022, 5:56pm UTC](https://community.gravityforms.com/t/bulk-add-conditionals-to-notifications/5882/5 "2022-01-04T17:56:45Z")

</div>


