Quantcast
Channel: Tutorials Archives | Gravity Wiz
Viewing all articles
Browse latest Browse all 122

Send Manual Notifications with Gravity Forms

$
0
0
View this code snippet on GitHub.

This simple snippet allows you to send notifications manually to users who have submitted your forms and provided an email.

  • Email all users who submitted the form
    Example: provide updates to users who signed up for your event
  • Email any user who selected a specific value
    Example: notify users that the option they selected for a product is no longer available
If you’re looking for an even faster way to email all users who have submitted a form, check out GP Email Users.

Getting Started

1. Install Snippet

The snippet will add support for the “Send Manually” notification event. By default there is only one notification event so Gravity Forms does not show the setting on the Notification edit screen; however, if you have more than one Notification Event, Gravity Forms will display the “Event” setting.

  1. Make sure Gravity Forms is installed and active.
    Need a license? Buy Gravity Forms
  2. Copy and paste the entire snippet into your theme’s functions.php file.
    Having trouble installing the snippet?.
  3. No code configuration required.

2. Create a New Notification

gw-manual-notifications-notification-event-setting
  1. Select “Send Manually” from the list of Notification Events
  2. Configure the notification as you would any other notification

3. Send Manual Notification

We will use Gravity Forms’ Resend Notifications feature to send our manual notification.

  1. gw-manual-notifications-entries
    Go to the Entry List page.
  2. gw-manual-notifications-entries-select-all
    Check the checkbox next to each entry to which you would like to resend the notification.
  3. gw-manual-notifications-entries-bulk-action-resend-notifications
    Select “Resend Notifications” from the Bulk Actions drop down.
  4. gw-manual-notifications-entries-resend-notifications-modal
    All of your notifications will appear; select your manual notification from the list.
  5. gw-manual-notifications-entries-resend-notifications
    Click the “Resend Notifications” button to send your manual notification.

More Examples

Send notifications for specific entries

Follow the steps above.

Send notifications for all entries with a specific option selected

There are two ways to accomplish this. You can add the conditional logic to the notification itself – or – you can filter the entries displayed in the Entry List view and only send to the filtered list.

Which is better? I prefer filtering from the Entry List view. It’s more flexible and allows you to more easily reuse the same manual notifications (when it makes sense).

  1. gw-manual-notifications-entries
    Go to the Entry List page.
  2. gw-manual-notifications-entries-filter
    Use the entry filter to narrow down the list of entries based on your criteria.
  3. gw-manual-notifications-entries-select-all-filtered
    Select all of the filtered entries.
  4. Follow the instructions above (starting from step #3) to send your manual notification to the selected entries.

With that said, if you find you need more complex filtering, the conditional logic setting on the notification will allow you to apply multiple filters which may be required for your use case.

Was this helpful?

We’d really love to hear how you use this functionality. Seriously, I’m not just saying that. Let us know in the comments!


Viewing all articles
Browse latest Browse all 122

Trending Articles