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.

Multiple User Notifications (autoresponders)

  1. I have a form for an event registration where one person and register up to 6 attendees.
    This was working when I initially set it up with merge tags in the BCC field. It seems to have stopped functioning now. The BCC field works fine if you have comma separated email addresses in there, but the merge tags stopped working.

    I tried using this hook, but had no luck. It actually broke all the other forms on the site.
    The other forms would send the user to the websiteURL.com/form_page/:/

    //email BCC to all registrants for Conference
    add_filter("gform_pre_submission_filter", "add_bcc");
    function add_bcc($form){
    	//change 2 to your actual form id
        if($form["id"] != 28)
            return;
    
        //creating list of emails based on fields on the form
        $bcc  = $_POST["input_16"] . ",";
        $bcc .= $_POST["input_25"] . ",";
        $bcc .= $_POST["input_32"] . ",";
        $bcc .= $_POST["input_39"] . ",";
        $bcc .= $_POST["input_46"]; 
    
        //setting notification BCC field to the list of fields
        $form["autoResponder"]["bcc"] = $bcc;
    
        //returning modified form object
        return $form;
    }
    Posted 11 years ago on Tuesday February 19, 2013 | Permalink
  2. What happened exactly when you tried that code? What error was shown? Maybe you just had a syntax error.

    Posted 11 years ago on Friday February 22, 2013 | Permalink
  3. It just submitted without issue. No errors. But it didn't send the autoresponder to the merge tags in the bcc.

    Posted 11 years ago on Friday February 22, 2013 | Permalink
  4. I thought you said "It actually broke all the other forms on the site." What did you mean by that?

    Is your form ID 28? And are those the actual input IDs from your form?

    Posted 11 years ago on Saturday February 23, 2013 | Permalink