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 new field or meta to admin notification email

  1. I am trying to add the result of an third-party API lookup to the Admin Notification email. I've tried a few different ways and none are working. For these I depended upon hooking into 'gform_entry_created' so that the entry exists already when I'm trying to add my data.

    - Add a custom entry meta field to the entry, then display that meta field in the notification email
    - Add a hidden field (named: "Reservation Guid") and update its $entry[field_id] value to the value of my third-party API result

    With the custom entry meta method, it doesn't seem like my meta is ever attached to the entry, it doesn't exist in the email.

    With the hidden field method, it doesn't seem like setting the value of $entry['23'] to any value actually changes the value on the entry object.

    Here is my code snippet:

    http://pastebin.com/GcU3X8rg

    using GF version 1.6.3.3.2

    Posted 12 years ago on Friday March 23, 2012 | Permalink
  2. Hi there, I'm still working on this, is "gform_entry_created" the correct hook to use to edit the entry object before notifications are sent?

    Posted 12 years ago on Monday March 26, 2012 | Permalink
  3. Hi Gravity Forms,

    I'll restate my question in the hopes I get a response:

    I would like to add the value of an API call to the admin notification email, only after a user has successfully submitted a valid form. The API call is currently being made user the 'gform_entry_created' hook. (btw, when I used 'gform_entry_created_2' the hook never fired)

    Is there a way to do this?

    http://pastebin.com/GcU3X8rg

    Posted 12 years ago on Thursday March 29, 2012 | Permalink