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