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.

Add text to specific form notification emails

  1. webdevstudios
    Member

    I'm trying to figure out a way I can add a block of text to the start of all email notifications from specific forms. I'd like to do this via code so I have one spot to update this text for all notifications.

    One option I could do is use the Gform_pre_submission hook to dynamically change a fields value with the text, but that would require me to add a hidden field on the 30+ forms I need to do this on. I'm trying to avoid that if possible.

    Any thoughts?

    Posted 13 years ago on Wednesday December 21, 2011 | Permalink
  2. Hi Brad. You can use the gform_pre_submission_filter to modify the autoresponder. Use it without a form ID, then in your function, have a conditional in the beginning to check to see if the form ID is in the list of IDs you want to modify the autoresponder for. Something like this http://pastebin.com/9ySd2nX2

    Posted 13 years ago on Wednesday December 21, 2011 | Permalink
  3. webdevstudios
    Member

    Nice, that is perfect! Thanks Chris

    Posted 13 years ago on Wednesday December 21, 2011 | Permalink
  4. Cool, glad that works for you.

    Posted 13 years ago on Wednesday December 21, 2011 | Permalink