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.

Custom Post Types and Notifications

  1. This is a basic question, I think, but I cannot find an answer on the Support Forum. Maybe it's just too basic to have been asked.

    On a submission form, I have a custom field which is an email field. I want a notification sent to that email address, but it's not an Advanced Fields > Email field, it's a Post Fields > Custom Field because I want it to be included in the Custom Field Type.

    I see these possibilities:
    1. two fields (one hidden) on the form, one of which populates the other
    2. one Advanced Fields > Email field that is written to the Custom Post Type field, something like
    add_action("gform_after_submission_1", "after_submission", 10, 2);
    function after_submission($entry, $form){
    //changing post content
    update_post_meta($entry['post_id'], 'email', $post->post_content = $entry[14]);
    }
    3. one Post Fields > Custom Field that is somehow referenced in notifications

    Or some 4th way I don't see. What is best/cleanest/works? And how to do it?

    Beth

    Posted 9 years ago on Sunday June 3, 2012 | Permalink
  2. Beth, check out this Screenshot :)

    Posted 9 years ago on Sunday June 3, 2012 | Permalink
  3. Umm.

    That was way too easy ...
    Thanks for the quick reply!

    Posted 9 years ago on Sunday June 3, 2012 | Permalink
  4. No problem, glad to help!

    Posted 9 years ago on Sunday June 3, 2012 | Permalink

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