Got it, @kkriss!
We’re glad to share a simple snippet, but the actual implementation of the logic that follows depends on your plans, and we won’t be really able to help with every step of it. At no point along the path you’ll have visual controls available – let us know if this is a total showstopper for you.
Here’s a super-basic example – accessing your submission data, and create a post with each form part mapped to a post meta field (notice that the wp_insert_post
call intentionally misses some important data, like the post type):
function child_theme_submission_success( $submission, $form, $message ) {
wp_insert_post( array(
'meta_input' => $submission
) );
}
add_action( 'happyforms_submission_success', 'child_theme_submission_success', 10, 3 );
We hope that serves as a starting point! Let us know how you go.