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.

Getting Form Entries From Database

  1. Chris,

    I am submitting a new topic as you requested. Is there an easy way to get the original field values from the database. Below is what I think the code should look similar to (obviously not proper syntax or function calls)

    $entryID = 522;
    $entryFields = GFFormDetail::get_entry_by_id($entryID);
    $parameterString = '';
    foreach ($entryFields as $entryField) {
      //Get Population Array to look like [  field_values='parameter_name=val&parameter_name2=val'  ]
      $parameterString = $entryField->name . '=' . $entryField->value . '&';
    //After for each remove last &
    if ($parameterString != '') {
      $parameterString = substr_replace($parameterString,"",-1);
    //Now parameter String is ready for this function (this is the same as the GF hook just linked directly into the actual GF function itself)
    return GFFormDisplay::get_form(

    Thanks for all your help so far Chris - I think I am getting close it just helps with your insight into the Gravity Forms plugin itself and its functions because I have not wrapped my head around all of them.


    Posted 9 years ago on Wednesday September 12, 2012 | Permalink
  2. Close this topic, figured it out.

    Posted 9 years ago on Thursday September 13, 2012 | Permalink
  3. Can you post how you applied your solution for the benefit of other members? Thanks.

    Posted 9 years ago on Friday September 14, 2012 | Permalink