PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Altering notification BCC with gform_pre_submission_filter not working

  1. We are following this guideline: http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter

    Basically I have a custom function to determine the email recipients for the Admin notification, which I put into the $form['notification']['bcc'] field... however, it appears that this no longer has any effect.

    I'm assuming this is due to the change in how notifications are handled, starting in the latest Gravity Forms update. I took a look at the form object, and now I see this, which leads me to believe I need to edit the BCC field under the specific Admin notification array, but how do I do this reliably? Is that array key 51c1ce591e9d4 always going to be the same?

    [notifications] => Array
            (
                [51c1ce591e9d4] => Array
                    (
                        [id] => 51c1ce591e9d4
                        [to] => trevor@designbygraphite.com
                        [name] => Admin Notification
                        [event] => form_submission
                        [toType] => email
                        [subject] => Bid Request
                        [message] => {all_fields}
                        [bcc] =>
                        [from] => trevor@designbygraphite.com
                        [fromName] => TREVOR
                        [replyTo] =>
                        [routing] =>
                        [conditionalLogic] =>
                        [disableAutoformat] =>
                    )
    
                [51c46e55a4657] => Array
                    (
                        [id] => 51c46e55a4657
                        [name] => Client Notification
                        [event] => form_submission
                        [to] => 4
                        [toType] => field
                        [bcc] =>
                        [subject] => Your Bid Request
                        [message] => Thank you for submitting your bid request.
    
    {all_fields}
                        [from] => trevor@designbygraphite.com
                        [fromName] => TREVOR
                        [replyTo] =>
                        [routing] =>
                        [conditionalLogic] =>
                        [disableAutoformat] =>
                    )
    
            )
    Posted 11 years ago on Friday June 21, 2013 | Permalink
  2. Anonymous
    Unregistered

    We are having this same problem. Is there updated documentation explaining how to best achieve this with the latest version of Gravity Forms?

    Posted 11 years ago on Tuesday July 9, 2013 | Permalink
  3. Jose: I basically just modified the array like this:

    $form['notifications']['51c1ce591e9d4']['bcc'] = "email@example.com,email2@example.com";

    To find that unique indentifier, just edit the notification in the backend: you can see it in the URL...

    Posted 11 years ago on Friday July 12, 2013 | Permalink
  4. Richard Vav
    Administrator

    If you still require assistance with this please open a new support ticket or a priority support ticket if you are a developer license holder.

    Posted 11 years ago on Thursday July 25, 2013 | Permalink

This topic has been resolved and has been closed to new replies.