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.

add entry id to post custom field

  1. Hello,
    This is embarrassing. A month ago I figured out how to add the entry id to a post custom field, automatically. The Custom Post Field is only seen by the admin and the entry id is entered in the custom field when the user submits the form. This has been my way of showing portions of the form on the front end. (I know there are other ways of doing that but this is a convenient way for me).

    For the life of me, I, now, cannot remember how I did this. I believe I did it from the Gravity Form UI and not by writing code, using hooks, etc. Any help or suggestions would be helpful.

    I am using the 1.5 beta.

    My method works on this page.
    http://www.haring.com/kh_foundation/grants/grant-application
    but doesn't work on this page
    http://www.haring.com/kh_foundation/authentication/authentication-form
    but you need to fill out this form to get there:
    http://www.haring.com/kh_foundation/authentication/terms-and-conditions

    Thanks.

    Daniel Wiener

    Posted 13 years ago on Monday January 17, 2011 | Permalink
  2. Hi Daniel,

    If I understand correctly, you want to get the entry ID of the submission and store it as custom post meta on a post that is being created by the form?

    A few points of confusion for me:

    1. You mentioned that the custom field that you are populating with the entry ID upon submission is only visible to the admin. My assumption is that this field would still be present in the form output, simply hidden from view; however, this does not appear to be the case as I was unable to find any hidden custom post fields in your "working" form.
    2. I'm not familiar with anyway of specifying the retrieval of the entry ID to populate a field in the GF admin.
    3. By entry ID, are we both referring to the ID of the entry as stored by Gravity Forms after a successful form submission?

    I would double check your functions.php just to make sure there is not custom code that is making the magic happen for the Grant form.

    Posted 13 years ago on Tuesday January 18, 2011 | Permalink