Skip Navigation

[Resolved] Gravity Forms integration

This thread is resolved. Here is a description of the problem and solution.

Problem: I have a site where Gravity Forms was used to create about 200 posts. I would like to use Views to display these posts.

Solution: It may or may not be possible to show information about each Entry in Views, depending on how the form was set up originally. Views can query and show information about any public post type, but Gravity Forms "Entries" are not public post types. They are stored in Gravity Forms' own custom database tables in a way that is not exposed to Views queries. So displaying information directly from existing Entries is not possible with Views.

However, there are some 3rd-party plugins out there that allow you to save each Gravity Form Entry into a custom post type. For example, https://wordpress.org/plugins/gravity-forms-custom-post-types/ If your form was originally configured with one of these integrations and each Entry was saved in a public custom post type, then Views may be able to loop over those posts and display information about each one. If you add this custom post type integration now, Views can loop over the posts created by future Gravity Form Entries, but the old Entries will not be included in those results. I think you would have to use some custom code to create posts out of those old Entries, but that custom code is not something I am able to offer here in the forums. Gravity Forms support might be able to offer some guidance there.

All Types custom fields are stored in the postmeta table using a key "wpcf-" + post field slug. So if the custom field slug is "my_field" in wp-admin, then the correct meta_key in the postmeta table is "wpcf-my_field".

100% of people find this useful.

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 7.50 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#612619

Tell us what you are trying to do?

People fill in an entry form (including photo upload) using Gravity forms. I would like to map the photo, name & title into a post for each entry.

Is there any documentation that you are following?
I would like you to recommend documentation or a plugin that would help integrate gravity forms with wp-types views. I am an experienced user of both Toolset and Gravity Forms but have not used them together.

I didn't realise the client wanted this integration - I would have set up the entry form using Toolset if I knew. Now there are over 200 entries using the Gravity Forms form and we need to map the content to create pages for the judges to go through and look at the entries.

What is the link to your site? hidden link

#612943

Hi, it may or may not be possible to show information about each Entry in Views, depending on how the form was set up originally. Views can query and show information about any public post type, but Gravity Forms "Entries" are not public post types. They are stored in Gravity Forms' own custom database tables in a way that is not exposed to Views queries. So displaying information directly from existing Entries is not possible with Views.

However, there are some 3rd-party plugins out there that allow you to save each Gravity Form Entry into a custom post type. For example, https://wordpress.org/plugins/gravity-forms-custom-post-types/ If your form was originally configured with one of these integrations and each Entry was saved in a public custom post type, then Views may be able to loop over those posts and display information about each one. If you add this custom post type integration now, Views can loop over the posts created by future Gravity Form Entries, but the old Entries will not be included in those results. I think you would have to use some custom code to create posts out of those old Entries, but that custom code is not something I am able to offer here in the forums. Gravity Forms support might be able to offer some guidance there.

I can offer assistance translating information captured by those forms into custom fields created by Types. All Types custom fields are stored in the postmeta table using a key "wpcf-" + post field slug. So if the custom field slug is "my_field" in wp-admin, then the correct meta_key in the postmeta table is "wpcf-my_field". If you need more specific information about field value formatting, feel free to let me know and I can provide any examples you need.