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.

How to get the labels from wp_rg_lead_meta and the values from wp_rg_lead_detail

  1. pluto
    Member

    I'm trying to submit a post for each entry that the form sends. The posts are stored in a custom post type.

    I've worked out that I can get the form field values through the Entry_Object function, and I can get the labels for each of the form fields through the Gform_get_meta function but each are stored in a separate table... How can I relate the tables to each other to list the form's labels, and then the value for each beside each other?

    The form's values seem to be stored in wp_rg_lead_detail and the label's are stored in wp_rg_lead_meta.

    Posted 11 years ago on Tuesday October 30, 2012 | Permalink
  2. Are you creating posts with your Gravity Form, or are you creating a post with some other code? The way you describe it here makes it sound more complicated than I'm used to seeing. If you are using code to create the posts, please post that at pastebin.com or pastie.org and copy the link here.)

    To relate two tables in SQL, you would need to perform a JOIN. It does not sound like you are using SQL though but using native Gravity Forms functions? Can you show us how you're doing things now? Thank you.

    Posted 11 years ago on Wednesday October 31, 2012 | Permalink