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.

Change To or Bcc field based on values from the form entry, on Resend

  1. When editing an entry in the admin-area, i set a status on the entry, that controls the look of the autoresponder mail content when hitting the resend button for the user notification.

    However i need to be able to change the sendTo field, or bcc, to add an e-mail adress that is stored in one of the fields for the form.

    I need something like this (but for the resend button):

    add_filter("gform_autoresponder_email", "change_notification_email", 10, 2);
    function change_notification_email($form){
    
    if($form["input_status"] != final)
    
            return $_POST["input_16"] . "," . $_POST["input_15"];
    }
    Posted 11 years ago on Tuesday October 9, 2012 | Permalink
  2. I think you can use the gform_before_resend_notifications hook which is new in 1.6.8:
    http://www.gravityhelp.com/documentation/page/Gform_before_resend_notifications

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  3. Moved to regular support forums.

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  4. Thanks Chris.

    Been looking into this - it is the right hook for sure. Now i just need to figure out how to get the entryfields and not the form fields ;)

    Posted 11 years ago on Friday October 12, 2012 | Permalink
  5. If you need more help, let us know.

    Posted 11 years ago on Friday October 12, 2012 | Permalink
  6. ok so i don't get this working...

    the gform_before_resend_notifications hook is dealing with the form object, where as i need to get data from the particular entry object, and put that into the form object before sending ...

    how do i do that ??
    ;)

    Posted 11 years ago on Monday October 15, 2012 | Permalink