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.

Function to get form entry by ID?

  1. joshcanhelp
    Member

    This seems like a simple thing but lots of searching didn't find anything.

    On my confirmation page, I want to display information based on what was submitted. I'm passing the entry ID in a URL query but how do I look up that form entry? Is there a get_entry($id) function I can use?

    Thanks in advance...

    Posted 7 years ago on Tuesday August 21, 2012 | Permalink
  2. joshcanhelp
    Member

    Back up ...

    Hoping to avoid writing a SQL query for this, seems like a pretty straightforward API function to have available.

    Posted 7 years ago on Thursday August 23, 2012 | Permalink
  3. I think this is what you want.

    $lead = RGFormsModel::get_lead($lead_id);

    The lead object when you dump the array will look something like this: http://grab.by/7V2c

    Posted 7 years ago on Friday August 24, 2012 | Permalink
  4. joshcanhelp
    Member

    That is, in fact, exactly what I needed, thank you.

    Are these types of API functions documented anywhere? I looked but certainly possible that I missed something. Edit: specifically, getting forms (get_form is pretty sparse) and getting field information for particular forms (specifically option items for drop-downs)

    Posted 7 years ago on Friday August 24, 2012 | Permalink
  5. There is no documentation online that I know of, other than the developer docs. I found that function looking through the source code of the plugin.

    Posted 7 years ago on Saturday August 25, 2012 | Permalink