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.

Date Field Template Tag?

  1. For that matter, how do I access the data stored within a published form entry via my template?

    I tried $entry['date_of_event'] (the label name) as outlined here: http://www.gravityhelp.com/documentation/page/Entry_Object

    And a billion different ways here: http://www.gravityhelp.com/documentation/page/Gform_get_meta
    (still unsure of how $entry_id and $meta_key are supposed to work)

    More examples, from various perspectives, throughout docs please? :)

    Posted 12 years ago on Wednesday December 21, 2011 | Permalink
  2. I'm unclear what you're asking. Do you mean you are trying to access a value which is stored in an entry, and use that value in your template? Can you give a more specific example? Do you know the form ID, entry ID and field ID, or will some of these change based on some information? We can do this, but need a lot more information from you to be able to help with specific examples.

    Posted 12 years ago on Wednesday December 21, 2011 | Permalink
  3. How do I echo data from within The Loop?

    For instance:
    1) User submits a "Favorite Breakfast" form entry with a "Favorite Breakfast Cereal" field (let's say "Field ID #3")
    2) Admin reviews and publishes their entry

    How do I get that data from the post?

    Can you provide an example of a standard WP loop with the GForm data in it?

    Posted 12 years ago on Thursday December 22, 2011 | Permalink
  4. Bump (hate to do it, but I'm on a deadline and I've been fighting with this supposedly very simple functionality half the night).

    I basically just need to know how to insert some data that someone entered as their name into single.php so I can list the "author".

    Posted 12 years ago on Thursday December 22, 2011 | Permalink
  5. Gravity Forms does not currently have any built in shortcodes or functions designed to display entry data on the front end of your site. It is designed to capture data and specifically as a Form Builder tool. It doesn't display entry data on the front end of your site, it's only accessible in the Admin.

    The only front end data Gravity Forms will create is if you configure your form to create a WordPress Post as part of the form submission. You do this by using the Post Fields.

    If you want to display Gravity Forms entry data on the front end of your site then you need to either...

    A) Use the 3rd party Gravity Forms Directory Add-On which lets you display entry data on the front end of your site. You can find it here:

    http://wordpress.org/extend/plugins/gravity-forms-addons/

    B) Write custom code to query and display the entry data which is stored in your WordPress database.

    We do plan on adding functions and shortcodes for displaying and even editing entry data on the front end of your site. It's one of the features we will be focusing on in the new year.

    Posted 12 years ago on Thursday December 22, 2011 | Permalink
  6. @aple, I have written shortcodes in the past to pull very specific information from Gravity Forms entries. Maybe this will help point you in the right direction: http://pastebin.com/FUF9HA6B

    As Carl mentioned, that is one of the focuses for the upcoming year, making it easy to get the entry data out using function calls or shortcodes.

    Posted 12 years ago on Friday December 23, 2011 | Permalink
  7. Alright, thanks guys. Hope you get that worked out in upcoming versions. It'd be great to be able to access entry data in templates.

    Posted 12 years ago on Friday December 23, 2011 | Permalink

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