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.

Send email to custom field

  1. I have been able to find a few posts on this topic, but I am not a technical person and by the time I read through all the threads, I was totally and utterly confused. I still can't see, anywhere, a clear step-by-step guide as to how this should be done.

    The best I've found is this:
    1. Create an email field and name as required, e.g. Hidden Email
    2. Under the 'Advanced' tab mark as visibility 'admin-only'
    3. Set the default value under the 'Advanced' tab to {custom_field:wdf-email}
    4. Go to 'Notifications' at the top of the page
    5. Select the 'Email' radio button under 'Send To Email'
    6. Insert a merge tag for the Hidden Email field, in my case {Hidden Email:5}
    7. Set the 'From Email' and 'Reply To' as required

    I'm assuming that in item 3, I select "insert merge tag: and in item 6, the 5 in {Hidden Email:5} means that field's ID.

    I've done that and it all looks fine. However when I send a test email, it doesn't work. I get a confirmation message as if it's sent OK, but it doesn't go anywhere, either to the custom field email or to the email address I put in the BCC field. I don't get any error messages.

    When I look at Entries, it's there. In the Notifications and Notes boxes, it allows me to resend a notification to Admin but not to anyone else.

    Posted 7 years ago on Thursday January 3, 2013 | Permalink
  2. Step 3 in your example will pull an email address from the custom field with the meta key name of wdf-email. Is that where your email address is stored for the post where the form is embedded? Can you explain where your email addresses are stored?

    I think the rest of the example is correct. Are you saying that the email address from the custom field IS being stored in your entry in field 5?

    Posted 7 years ago on Thursday January 3, 2013 | Permalink
  3. I've just realized the problem. The form is not embedded in the post! Instead, the reader clicks a button to be taken to another page which has the form on it. Now I think about it, of course that won't work, unless there's a way to tell the form which post the reader came from - which I assume isn't possible?

    I didn't really want the form embedded in the post itself, because it would make the post messy to navigate. Is there a way I could set up the form so it only shows the first input box, and the rest of the form would "unfold" below when the person starts filling it in?

    I thought I could use conditional logic in the other fields to say that if Field 1 is not blank, the other fields should display. However that option isn't available.

    Posted 7 years ago on Thursday January 3, 2013 | Permalink
  4. David Peralty
    Administrator

    You've run into a limitation of Gravity Forms and I can't think of any way for you to get around it. You will have to make some other compromise to make it work as you want. You could potentially use some PHP to grab the referral URL and put it in a hidden field. All my best!

    Posted 7 years ago on Thursday January 3, 2013 | Permalink
  5. Back again - I just tried embedding the form in the post. It works!

    However I'd really like to get that form to unfold. Is there any way I can do something conditional?

    Posted 7 years ago on Thursday January 3, 2013 | Permalink
  6. David Peralty
    Administrator

    The issue is our conditional logic can't test against empty. You would have to come up with some qualification you could test against like "starts with", "is not", etc...

    Posted 7 years ago on Friday January 4, 2013 | Permalink
  7. jessicasantacruz
    Member

    Hello David,
    I am using Gravity Forms for the first time and believe I ran into the same issue. I would like to use the "Enable Conditional Logic" to have my fields be hidden unless a prior field is filled. There are no specifications to the exact value, just as long as something has been entered, is there any way to do this?

    Thanks,
    Jessica

    Posted 7 years ago on Saturday January 5, 2013 | Permalink
  8. Would it work if I had a default value for the field, then set the conditional value to be "is not" that value?

    e.g. I set up the default value to be "enter your function type here". If someone fills in that field, then the conditional logic would detect the value is no longer that value.

    Posted 7 years ago on Saturday January 5, 2013 | Permalink
  9. David Peralty
    Administrator

    I think you should be able to use is not in that way. Let me know if it works for you.

    Posted 7 years ago on Monday January 7, 2013 | Permalink