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.

User notification based on user meta

  1. Carmello
    Member

    I'm using a form hook to auto populate the email address of the logged in user to a form. Doing this, it won't allow me to setup a user notification because the form doesn't think I have an email address to send to.. probably because it's not a field on the form. I actually don't want it to be a field because the form is for logged in users. In order to make this work should I add the email address field to the form, hide it with CSS, and add the logged in users email address by hook? Any help would be appreciated and sorry for any errors or bad grammar, typing from my iPhone in a coffee shop.

    Posted 13 years ago on Wednesday September 7, 2011 | Permalink
  2. You have to use an Email field. So what you need to do is add an Email field to your form, edit it and select the Advanced tab and set it's visibility to Admin Only. The user won't see it with it's visibility set to Admin Only. Then set it to be dynamically populated and populate it with the email address of the logged in user.

    Posted 13 years ago on Wednesday September 7, 2011 | Permalink

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