Title: Insert post like send email
Last modified: February 9, 2021

---

# Insert post like send email

 *  Resolved [Weiching](https://wordpress.org/support/users/weiching-lin/)
 * (@weiching-lin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/insert-post-like-send-email/)
 * Hello,
 * Whether the fields created in the post submission form can be inserted into the
   content, just like sending an email form.
 * This is the submit post form
 * > [View post on imgur.com](https://imgur.com/ai00vRW)
 * Fields Map
 * > [View post on imgur.com](https://imgur.com/PrG6glT)
 * After submission
 * > [View post on imgur.com](https://imgur.com/wFdMsum)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [mjhead](https://wordpress.org/support/users/mjhead/)
 * (@mjhead)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/insert-post-like-send-email/#post-14034677)
 * Hi!
    At this moment you can do this only from the code with Call Hook notification.
   Here is an example: – [http://prntscr.com/z2kn49](http://prntscr.com/z2kn49) –
   [http://prntscr.com/z2ksj9](http://prntscr.com/z2ksj9)
 *     ```
       add_action( 'jet-form-builder/custom-action/update-post', function( $request, $action ) {
       	if ( ! empty( $action->response_data['inserted_post_id'] ) ) {
       		$content = '<div><b>Phone:</b>' . $request['phone'] . '</div><div><b>Address:</b>' . $request['address'] . '</div>';
       		wp_update_post( array(
       			'ID'           => $action->response_data['inserted_post_id'],
       			'post_content' => $content,
       		) );
       	}
       }, 10, 2 );
       ```
   
 *  Thread Starter [Weiching](https://wordpress.org/support/users/weiching-lin/)
 * (@weiching-lin)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/insert-post-like-send-email/#post-14039133)
 * Hi Andrey,
 * It works perfectly.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Insert post like send email’ is closed to new replies.

 * ![](https://ps.w.org/jetformbuilder/assets/icon-256x256.png?rev=2998825)
 * [JetFormBuilder — Dynamic Blocks Form Builder](https://wordpress.org/plugins/jetformbuilder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetformbuilder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetformbuilder/)
 * [Active Topics](https://wordpress.org/support/plugin/jetformbuilder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetformbuilder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetformbuilder/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Weiching](https://wordpress.org/support/users/weiching-lin/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/insert-post-like-send-email/#post-14039133)
 * Status: resolved