Title: Gravity form submits, custom post not created
Last modified: August 22, 2016

---

# Gravity form submits, custom post not created

 *  Resolved [harlekein](https://wordpress.org/support/users/harlekein/)
 * (@harlekein)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/meta-box-custom-posts-and-gravity-forms/)
 * I am working on a site and the goal is for users to complete a form, then I would
   like to have the submitted data stored in the database. The website admin should
   also be able to create these posts themselves as they will be listed on the website.
 * To achieve this I have been following this guide:
    [Create custom post type from form submission.](https://bay-a.co.uk/wordpress-tips/gravity-forms-custom-post-from-form/)
 * I have set up a custom post through custom post UI. Then I wrote out the meta
   boxes for that post.
 * I am using this:
    `add_action("gform_after_submission_1", "create_booking_from_submission",
   10, 2);`
 * The form is submitte,d the actual code runs as well, as I can see update_post_meta
   running. I got an error for some of the unsupplied fields. For example, this 
   is a checkbox and in ‘Undefined offset’ errors when not checked. This should 
   be okay though as I expect it to inser NULL into the database at this point.
 * `update_post_meta($bookingId, $bookingPrefix.'private', ucwords($entry[14]));`
 * However, I don’t see any posts being created and I am at a loss on how to troubleshoot
   this. I might be overlooking something. Any help would be greatly appreciated.
 * [https://wordpress.org/plugins/meta-box/](https://wordpress.org/plugins/meta-box/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/meta-box-custom-posts-and-gravity-forms/#post-5665154)
 * Hi, I think you should post this question in Gravity’s support forum. Processing
   Gravity form is something beyond the scope of Meta Box plugin.

Viewing 1 replies (of 1 total)

The topic ‘Gravity form submits, custom post not created’ is closed to new replies.

 * ![](https://ps.w.org/meta-box/assets/icon-128x128.png?rev=1100915)
 * [Meta Box](https://wordpress.org/plugins/meta-box/)
 * [Support Threads](https://wordpress.org/support/plugin/meta-box/)
 * [Active Topics](https://wordpress.org/support/plugin/meta-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meta-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meta-box/reviews/)

## Tags

 * [custom post](https://wordpress.org/support/topic-tag/custom-post/)

 * 1 reply
 * 2 participants
 * Last reply from: [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/meta-box-custom-posts-and-gravity-forms/#post-5665154)
 * Status: resolved