# Recipients receiving different notification information based on form choices

**URL:** <https://community.gravityforms.com/t/recipients-receiving-different-notification-information-based-on-form-choices/7790>\
**Category:** Get Help\
**Tags:** conditional-shortcode, gravity-wiz\
**Created:** [February 9, 2021, 5:27pm UTC](https://community.gravityforms.com/t/recipients-receiving-different-notification-information-based-on-form-choices/7790 "2021-02-09T17:27:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5c912c08bbfbb9.3](https://avatars.discourse-cdn.com/v4/letter/u/f6c823/32.png) [@user5c912c08bbfbb9.3](https://community.gravityforms.com/u/user5c912c08bbfbb9.3)\
**Post date:** [February 9, 2021, 5:27pm UTC](https://community.gravityforms.com/t/recipients-receiving-different-notification-information-based-on-form-choices/7790/1 "2021-02-09T17:27:29Z")

</div>

I am building a form where customers can choose to join any number of 5 online workshops, all on different dates.

I want a notification to go out to customers including the Zoom password/link to the workshops they have selected, but NOT the workshops they have not selected.

I know this could be done with the conditional logic and several different notification emails, but I was hoping there’d be an easier way, as each month all the links will change, so I don’t want to reconfigure separate notification emails.

Am I missing something? Is there another way aside from creating a notification for each variable of choosing any number of the 5 workshops?

I could put the Zoom password as the ‘value’ for the dates they choose, however how do I get the notification email to show the respondents this value?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/david/32/2517_2.png) [@david](https://community.gravityforms.com/u/david)\
**Post date:** [February 10, 2021, 3:58am UTC](https://community.gravityforms.com/t/recipients-receiving-different-notification-information-based-on-form-choices/7790/2 "2021-02-10T03:58:16Z")

</div>

Behold the power of the Gravity Forms Conditional Shortcode!

> **[Gravity Forms Conditional Shortcode - Gravity Wiz](https://gravitywiz.com/gravity-forms-conditional-shortcode/)**
>
> Use the Gravity Forms Conditional Shortcode to display conditional content in your Gravity Form confirmations, notifications or HTML fields (with the GP Preview Submission perk).

Default shortcode is part of Gravity Forms core. We’ve enhanced it with some advanced features here:

> **[Gravity Forms Advanced Conditional Shortcode - Gravity Wiz](https://gravitywiz.com/gravity-forms-advanced-conditional-shortcode/)**
>
> Display conditional Gravity Forms content anywhere shortcodes are supported with multiple conditions.

Check out both and let me know if you have any questions!

---

<div class="post-metadata">

**Author:** ![Maligno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/maligno/32/2519_2.png) [@Maligno](https://community.gravityforms.com/u/Maligno)\
**Post date:** [February 10, 2021, 2:21pm UTC](https://community.gravityforms.com/t/recipients-receiving-different-notification-information-based-on-form-choices/7790/3 "2021-02-10T14:21:13Z")

</div>

You can use a filter on your functions.php file:  
//target form id 203, change to your form id

```
add_filter( 'gform_notification_203', 'set_notification_content', 10, 3 );
function set_notification_content( $notification, $form, $entry ) {
	if ( $notification['name'] == 'User Notification' ) {} // if you want to filter by notification
	$field_value= rgar( $entry, '1' ); // getting a value of the form
	if($field_value == "XXXX"){
		$notification['message'] = "YYYYYY";
	}
}
```

---

<div class="post-metadata">

**Author:** ![user5c912c08bbfbb9.3](https://avatars.discourse-cdn.com/v4/letter/u/f6c823/32.png) [@user5c912c08bbfbb9.3](https://community.gravityforms.com/u/user5c912c08bbfbb9.3)\
**Post date:** [February 11, 2021, 12:25pm UTC](https://community.gravityforms.com/t/recipients-receiving-different-notification-information-based-on-form-choices/7790/4 "2021-02-11T12:25:41Z")

</div>

This looks like it’s the one - thanks so much, just having a play around with it now.

---

<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 5, 2022, 8:43am UTC](https://community.gravityforms.com/t/recipients-receiving-different-notification-information-based-on-form-choices/7790/5 "2022-01-05T08:43:01Z")

</div>


