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.

Dynamic Email Population Based on Field Selection

  1. Hi,

    I need a form that will submit to a different email address based on a person's selection from a drop down menu. For example, if the person selects the sale's department, I need the form to automatically be sent to an address in that department, but if they select admissions, I need it automatically sent to an address in the admissions department. Is this possible with Gravity Forms? Also, do you have any idea when the export to PDF feature might be added to your plugin?

    Posted 13 years ago on Thursday October 27, 2011 | Permalink
  2. Hi HGST,

    Gravity Forms supports notification email routing which allows you to specify a different email address depending on the selected value of a field. :)

    No news on the export to PDF functionality. There are several other items we're interested in tackling first.

    Posted 13 years ago on Thursday October 27, 2011 | Permalink
  3. Hi there. I have kind of the same question as the original post. What I would like to do is have Gravity Forms look for a unique user profile field and send the email to one of several email addresses which is determined by the user profile field. Is this possible? If so I would greatly appreciate some guidance. Thanks!

    Posted 13 years ago on Monday October 31, 2011 | Permalink
  4. Sure. If by user profile field you are referring to user meta data.

    - Add an Email field to your form
    - Edit the Email field
    - Select the Advanced Tab
    - In the Default value use the merge tag for user meta and the key for the meta you want to return. You'll need to know its meta key. For example: {user:yourkey} would return the user meta value with the key yourkey.
    - Set the visibility to Admin Only
    - Save the form
    - Edit Notifications for the form and configure Admin Notifications to send to this email field

    If you set it up properly and used the proper user meta key for the profile data you want, it will populate that field with it's value and then the Admin Notification would be sent to that address.

    Merge tag documentation can be found here if you have customer support access:

    http://www.gravityhelp.com/documentation/page/Merge_Tags

    Posted 13 years ago on Monday October 31, 2011 | Permalink
  5. Carl thank you very much. This does appear to do what we would like it to do. The merge tag page is also very helpful. I was hoping you could call custom profile fields using merge tags, and it looks like you can. Thanks again.

    Posted 13 years ago on Tuesday November 1, 2011 | Permalink

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