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.

Display form entry # into post

  1. dbrathompson
    Member

    I would like to display the entry # into the body of my post. I have GF set to publish the entry as a post. I would also like GF to publish the entry # as well. For example, if it is the 111th entry submitted from my GF, I would like the published post to include "#111" in the bottom left of the post field.

    Thanks

    Posted 7 years ago on Saturday November 5, 2011 | Permalink
  2. Sure, use a content template for your post body (in the form builder, check the "Create content template".) In the drop down where it says 'Insert Merge Tag' (or in your version it might say "Insert form field"), and pull down to insert the entry ID. It will look like this in your content template.

    [php]
    {Post Body:2}
    #{entry_id}

    That assumes you want just the submitted content in the body, plus the entry ID. And that your post body is field #2 in your form. Use the drop down to insert the merge tags, and the field IDs will be correct.

    Simply, the entry ID can be inserted into the post using this merge tag:
    {entry_id}

    You can format the rest of the post body however you like.

    Posted 7 years ago on Saturday November 5, 2011 | Permalink
  3. dbrathompson
    Member

    Thanks that was easy enough!

    Posted 7 years ago on Sunday November 6, 2011 | Permalink
  4. Glad that worked out for you. Thanks for the update.

    Posted 7 years ago on Tuesday November 8, 2011 | Permalink

This topic has been resolved and has been closed to new replies.