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.

routing notifications to a custom field

  1. Is there a way to route an email to an email address based on a custom field?

    ie I'm on /page/X and X has a custom field of "email" that is set to joe@shmo.com

    When the form is embedded on /page/X/, is there a way I can route all notifications from that page to the custom field?

    Posted 7 years ago on Thursday July 26, 2012 | Permalink
  2. Please take a look at this.
    http://www.gravityhelp.com/forums/topic/email-notification-send-to-email-address-pulled-in-from-post-custom-field

    Does that help? It's certainly possible to do.

    Posted 7 years ago on Thursday July 26, 2012 | Permalink
  3. Ah didn't see that thread. Looks like it should do what I want to do.

    Thanks!

    Posted 7 years ago on Thursday July 26, 2012 | Permalink
  4. David Peralty
    Administrator

    Let us know if that solution doesn't work for you.

    Posted 7 years ago on Thursday July 26, 2012 | Permalink
  5. I tried what the solution called for, but it's not letting me update my form with that value.

    I'm trying: {custom_field:_custom_email}

    _custom_email is my custom field name.

    I'm putting this in the "Send to Email" field. (and choosing Email, not Routing)

    Posted 7 years ago on Thursday July 26, 2012 | Permalink
  6. I have the same problem. When I put "{custom_field:customemail}" in email field, this is the message that I get: Please enter a valid email address

    Posted 7 years ago on Tuesday July 31, 2012 | Permalink
  7. You need to place that tag in a hidden field's default value (Advanced Tab on the Hidden Field in the editor). Then select that field to use in the notifications.

    Posted 7 years ago on Tuesday July 31, 2012 | Permalink
  8. Hi Rob,

    the "hidden field's default value"? Which element are you describing? Name? Email? I'm in the "Form Editor", correct?

    Sorry, a little unclear still for me.

    Thanks Rob,
    jonathan

    Posted 7 years ago on Tuesday July 31, 2012 | Permalink
  9. Ah, I think I figured it out.

    Under Standard Fields, there is a "hidden" field which you can then switch to the Advanced tab and add {custom_field:your_field} and label it whatever you want. that field then becomes available in the notifications routing tab.

    I'm developing locally, so it's difficult to see if the mail actually sent out or not, but I think I should be able to get it from here.

    confirmed, I tested it in a live production environment and it worked perfectly.

    Thanks again!

    Posted 7 years ago on Tuesday July 31, 2012 | Permalink
  10. Thank you for the update and explanation to make things clear for future readers.

    Posted 7 years ago on Wednesday August 1, 2012 | Permalink
  11. bethbacken
    Member

    Thanks for explanations. I'm not quite getting it to do what I need, though. I'm trying to make a form for "tell a friend" which emails a message to the user's choice - whose email address they type into an email field. The site is not live yet, here is the testing url: http://amaliallc.backenweb.com/home/tell-a-friend/

    When I look on the notifications page I see the fields in the drop-down (the email fields as well as a hidden one I created when following this thread) but they are located after the if condition. Is it not possible to add the field data to the send to email field? I would like to add all three friend email addresses in the send to field, as shows on that form page.

    I've also tried adding {custom_field:first_friends_email},{custom_field:second_friends_email},{custom_field:third_friends_email} in the send to field, and it flags it as an invalid email address. When I add the same to the BCC field, it doesn't flag it, but also doesn't send the email.

    I'm sure I'm missing some here, thanks for any further clarification you can offer.

    Posted 7 years ago on Thursday August 16, 2012 | Permalink