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 to Email" address populated dynamically from custom_field

  1. Hello,

    There is a similar post to this one here but unfortunatlly doesnt answer my question:
    How do I exactly do to get value (users emailadress) from custom_field and place it as recipient of the form.

    I have tried dynamicaly populating a simple field with {custom_field:user_email} (my custom_field key is named user_email) but nothing happens. But once again I do not need to populate a simple text field, i need to get the value to show up in "Notifications" in "Send to Email" input

    Have anyone done done this succesfully?
    Thanks for all suggestions

    Posted 13 years ago on Friday July 8, 2011 | Permalink
  2. That post does exactly what you described. It populates an email field on the form with a custom field value from the post the form is being submitted from. That email field is then used for the Send To on the User Notification. The example in that post does work.

    If you need it to show up in the "Send to Email" drop down you would need to use an Email field, not a Single Text field. Only Email fields appear in the Email selection drop down in the Notifications.

    Posted 13 years ago on Friday July 8, 2011 | Permalink
  3. Thanks for fast reply!
    I think Im doing something wrong because my email field wont get populated by custom field. Any ideas? Screenshot

    Posted 13 years ago on Friday July 8, 2011 | Permalink
  4. You are using the "Allow field to be populated dynamically" area wrong. That is for populating the field dynamically using custom PHP and via the query string. The parameter name you enter there is for then populating the field using custom PHP.

    The post you linked to discusses populating the field using a merge tag in the Default Value for that field.

    You would place:

    {custom_field:user_email}

    In the Default Value for this field. You would then set the field visibility to Admin Only so the user doesn't see it. In order for this to work the custom field key needs to be 100% correct and it is case sensitive. So if the key is user_email then my example above should work.

    Posted 13 years ago on Friday July 8, 2011 | Permalink
  5. Great! Thanks alot Carl you have been really helpfull.

    Posted 13 years ago on Friday July 8, 2011 | Permalink