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.

Form not Returning the $entry['post_id']

  1. Hi,

    I'm having a problem where my form is not returning the $entry['post_id'] when using the Custom Post Type Plugin.

    I have tried the hooks gform_pre_submission gform_after_submission and gform_post_data but the print_r values of all these did not contain the post id field. I am trying to get the post id so I can associate an uploaded file with it which makes me think I need to get the id then do it BEFORE the form is submitted

    Any help would be awesome

    Posted 7 years ago on Tuesday March 5, 2013 | Permalink
  2. Funny story, I don't think the $entry['post_id'] was the problem at all. I think it was a problem with trying to get my form to upload the attachment correctly. I finally got it working so I wrote a Post about it here: http://bandonrandon.wordpress.com/2013/03/05/uploading-files-as-post-attachments-with-gravity-forms/

    Posted 7 years ago on Wednesday March 6, 2013 | Permalink
  3. Thank you for sharing that post.

    Posted 7 years ago on Sunday March 10, 2013 | Permalink