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.

Reading hidden fields data

  1. esuner
    Member

    I created a quite complex form filled with hidden fields (don't ask why, please) which is published to a custom post type.

    How can I display each post hidden fields values in my theme? The regular ones (title, content, etc) are displayed correctly, but I can't find a way to display, or call the hidden fields. Since these fields are stored in a gravity form table, I can't finde the answer in Wordpress Codex. Neither I was able to find it here.

    I'm pretty sure that it's quite easy, but I don't know where to find this.

    Thanks!

    Posted 11 years ago on Tuesday June 11, 2013 | Permalink
  2. You can either use a custom post field and select "hidden" type which will then add that value as custom meta or you can enable a content template on the post body field that will then allow you to insert your fields into your post body.

    Posted 11 years ago on Tuesday June 11, 2013 | Permalink
  3. esuner
    Member

    Thanks Rob, the first suggestion is what I should have done. But sadly the form already exists and some data has been entered (not much, though).

    So basically I need to read that data which is not in the custom fields.

    I didn't understand your second suggestion, but I believe it doesn't solve my problem.

    I need to read the data that has already been entered in that table (wp_rg_lead_detail).

    Maybe I should start all over again and instead of using hidden fields to store my data I should rebuild the form, use custom fields and re-enter the data that was entered before.

    Thanks!

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  4. esuner
    Member

    Don't worry. I rebuilt the form using only post fields and custom post fields. I will have to enter all the data again, but it's worth it.

    Thanks!

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  5. Glad to help!

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink

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